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

This commit is contained in:
Massimo Di Pierro
2012-03-01 11:19:03 -06:00
parent a8a4fee635
commit 7f5496d1bb
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1 +1 @@
Version 1.99.4 (2012-03-01 11:01:59) stable
Version 1.99.4 (2012-03-01 11:18:51) stable
+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