From 5e2ed7fb4d936e5086421c84d22024bf15400d85 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 30 Jul 2007 03:36:39 +0000 Subject: [PATCH] Take paragraph indent into account while calculating cell widths --- src/libprs500/ebooks/lrf/html/table.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libprs500/ebooks/lrf/html/table.py b/src/libprs500/ebooks/lrf/html/table.py index 74b8e4a8a4..f0c5cb27a0 100644 --- a/src/libprs500/ebooks/lrf/html/table.py +++ b/src/libprs500/ebooks/lrf/html/table.py @@ -198,7 +198,7 @@ class Cell(object): 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]