mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
DOCX: Text borders must be >= 1pt to be rendered
This commit is contained in:
parent
ef0f0093f8
commit
2e7d406aac
@ -36,7 +36,8 @@ def read_text_border(parent, dest):
|
||||
if sz is not None:
|
||||
# we dont care about art borders (they are only used for page borders)
|
||||
try:
|
||||
border_width = min(96, max(2, float(sz))) / 8
|
||||
# A border of less than 1pt is not rendered by WebKit
|
||||
border_width = min(96, max(8, float(sz))) / 8
|
||||
except (ValueError, TypeError):
|
||||
pass
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user