fixed issues 686, markming rendering of consecutive tables and blockquotes, thanks mirek.zvolsky

This commit is contained in:
Massimo Di Pierro committed 2012-03-01 11:19:03 -06:00
1 parent a8a4fee635
commit 7f5496d1bb
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -396,9 +396,9 @@ def render(text,extra={},allowed={},sep='p'):
content = item.group('t')
if ' | ' in content:
rows = content.replace('\n','</td></tr><tr><td>').replace(' | ','</td><td>')
text = text[:item.start()] + '<<table class="%s"><tr><td>'%c + rows + '</td></tr></table>' + text[item.end():]
text = text[:item.start()] + '<<table class="%s"><tr><td>'%c + rows + '</td></tr></table>\n' + text[item.end():]
else:
text = text[:item.start()] + '<<blockquote class="%s">'%c + content + '</blockquote>' + text[item.end():]
text = text[:item.start()] + '<<blockquote class="%s">'%c + content + '</blockquote>\n' + text[item.end():]
#############################################################
# deal with images, videos, audios and links