aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xblogthon.cgi3
1 files changed, 2 insertions, 1 deletions
diff --git a/blogthon.cgi b/blogthon.cgi
index 855302a..4fb7c52 100755
--- a/blogthon.cgi
+++ b/blogthon.cgi
@@ -427,7 +427,8 @@ else:
print ' <div class="entry_date">' + date + '</div>'
print ' <div class="entry_content">'
for line in content:
- if re.search('<li>', line) or re.search('<ul>', line) or re.search('</ul>', line) or re.search('<ol>', line) or re.search('</ol>', line):
+ no_break = re.compile('^.*(<ul>|</ul>|<li>|<ol>|</ol>|<table>|</table>|<tr>|</tr>|<td>|</td>).*$')
+ if re.match(no_break, line):
print ' ' + line.strip()
else:
print ' ' + line.strip() + '<br />'