Add definition lists to the no_break regex

This commit is contained in:
Stefan Ritter 2012-01-23 05:31:18 +01:00
parent 34543e9d93
commit 164126ddf1

View File

@ -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("^\+.*$")