fixed issues 686, markming rendering of consecutive tables and blockquotes, thanks mirek.zvolsky
This commit is contained in:
1 parent
a8a4fee635
commit
7f5496d1bb
2 files changed
+3
-3
No files matched your search
@@ -1 +1 @@
|
|||||||
Version 1.99.4 (2012-03-01 11:01:59) stable
|
Version 1.99.4 (2012-03-01 11:18:51) stable
|
||||||
@@ -396,9 +396,9 @@ def render(text,extra={},allowed={},sep='p'):
|
|||||||
content = item.group('t')
|
content = item.group('t')
|
||||||
if ' | ' in content:
|
if ' | ' in content:
|
||||||
rows = content.replace('\n','</td></tr><tr><td>').replace(' | ','</td><td>')
|
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:
|
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
|
# deal with images, videos, audios and links
|
||||||
|
|||||||
Reference in new issue
Block a user