mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
DOCX Output: Add support for <hr>
This commit is contained in:
parent
ae91363a68
commit
87cbf338c1
@ -1,5 +1,4 @@
|
||||
Table of Contents
|
||||
<hr> tag (probably as an empty block with a border)
|
||||
Various TODOs sprinkled through the source
|
||||
List image bullet
|
||||
Cover image
|
||||
|
@ -487,6 +487,9 @@ class Convert(object):
|
||||
# Image is floating so dont start a new paragraph for it
|
||||
self.add_inline_tag(tagname, html_tag, tag_style, stylizer)
|
||||
else:
|
||||
if tagname == 'hr':
|
||||
for edge in 'right bottom left'.split():
|
||||
tag_style.set('border-%s-style' % edge, 'none')
|
||||
self.add_block_tag(tagname, html_tag, tag_style, stylizer, float_spec=float_spec)
|
||||
|
||||
for child in html_tag.iterchildren('*'):
|
||||
|
Loading…
x
Reference in New Issue
Block a user