When transforming comments HTML dont use closing br tags as older versions of WebKit cannot handle them

This commit is contained in:
Kovid Goyal 2019-04-12 08:38:50 +05:30
parent 982500475d
commit bde983bdeb
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -2,7 +2,7 @@
# vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai # vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai
# License: GPLv3 Copyright: 2010, Kovid Goyal <kovid at kovidgoyal.net> # License: GPLv3 Copyright: 2010, Kovid Goyal <kovid at kovidgoyal.net>
from __future__ import print_function, unicode_literals from __future__ import absolute_import, division, print_function, unicode_literals
import re import re
@ -128,7 +128,7 @@ def comments_to_html(comments):
for p in container.findAll('p'): for p in container.findAll('p'):
p['class'] = 'description' p['class'] = 'description'
return container.decode_contents() return container.decode_contents().replace('<br></br>', '<br>')
def markdown(val): def markdown(val):