mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
a403ec4351
commit
97281c4569
@ -92,7 +92,7 @@ class Block(object):
|
||||
if self.runs and ts == self.runs[-1].style:
|
||||
run = self.runs[-1]
|
||||
else:
|
||||
run = TextRun(ts, html_parent or self.html_block)
|
||||
run = TextRun(ts, self.html_block if html_parent is None else html_parent)
|
||||
self.runs.append(run)
|
||||
preserve_whitespace = ws in {'pre', 'pre-wrap'}
|
||||
if ignore_leading_whitespace and not preserve_whitespace:
|
||||
|
Loading…
x
Reference in New Issue
Block a user