mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
When transforming comments HTML dont use closing br tags as older versions of WebKit cannot handle them
This commit is contained in:
parent
982500475d
commit
bde983bdeb
@ -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):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user