mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
reduce definition lists sidemargin.
This commit is contained in:
parent
a44a5040e0
commit
5e8fdf7b2b
@ -1081,7 +1081,7 @@ class HTMLConverter(object):
|
|||||||
elif tagname in ['li', 'dt', 'dd']:
|
elif tagname in ['li', 'dt', 'dd']:
|
||||||
margin = self.list_indent*self.list_level
|
margin = self.list_indent*self.list_level
|
||||||
if tagname == 'dd':
|
if tagname == 'dd':
|
||||||
margin += 100
|
margin += 80
|
||||||
if int(self.current_block.blockStyle.attrs['sidemargin']) != margin:
|
if int(self.current_block.blockStyle.attrs['sidemargin']) != margin:
|
||||||
self.end_current_block()
|
self.end_current_block()
|
||||||
attrs = self.current_block.blockStyle.attrs
|
attrs = self.current_block.blockStyle.attrs
|
||||||
|
Loading…
x
Reference in New Issue
Block a user