mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
PML Input: Remove emtpy lines.
This commit is contained in:
parent
dc7bc5dd5d
commit
c2b3c445e1
@ -207,6 +207,7 @@ class PML_HTMLizer(object):
|
||||
while html != old:
|
||||
old = html
|
||||
html = self.cleanup_html_remove_redundant(html)
|
||||
html = re.sub(r'(?imu)^\s*', '', html)
|
||||
return html
|
||||
|
||||
def cleanup_html_remove_redundant(self, html):
|
||||
|
Loading…
x
Reference in New Issue
Block a user