Add definition lists to the no_break regex
This commit is contained in:
parent
34543e9d93
commit
164126ddf1
@ -42,7 +42,7 @@ except ImportError:
|
|||||||
import ConfigParser as configparser
|
import ConfigParser as configparser
|
||||||
|
|
||||||
# A wonderful place for doing some regexp ;)
|
# A wonderful place for doing some regexp ;)
|
||||||
no_break = re.compile("^\s*(<ul|</ul>|<li|</li>|<ol|</ol>|<table|</table>|<tr|</tr>|<td|</td>|<th|</th>|<p|</p>).*$")
|
no_break = re.compile("^\s*(<ul|</ul>|<li|</li>|<ol|</ol>|<d.|</d.>|<table|</table>|<t.|</t.>|<p|</p>|<h.|</h.>).*$")
|
||||||
line_start_hyphen = re.compile("^-.*$")
|
line_start_hyphen = re.compile("^-.*$")
|
||||||
line_start_plus = re.compile("^\+.*$")
|
line_start_plus = re.compile("^\+.*$")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user