mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 11:14:02 +02:00
Take paragraph indent into account while calculating cell widths
This commit is contained in:
parent
efabf65955
commit
5e2ed7fb4d
1 changed files with 1 additions and 1 deletions
|
|
@ -198,7 +198,7 @@ def add_word(width, height, left, right, top, bottom, ls, ws):
|
|||
for word in token.split():
|
||||
width, height = font.getsize(word)
|
||||
left, right, top, bottom = add_word(width, height, left, right, top, bottom, ls, ws)
|
||||
return right+3, bottom
|
||||
return right+3+max(parindent, 10), bottom
|
||||
|
||||
def text_block_preferred_width(self, tb, debug=False):
|
||||
return self.text_block_size(tb, sys.maxint, debug=debug)[0]
|
||||
|
|
|
|||
Loading…
Reference in a new issue