This commit is contained in:
Kovid Goyal 2016-11-22 10:18:51 +05:30
parent 62a4512816
commit 5b3ce2e148

View File

@ -268,7 +268,9 @@ def render_cell(text, bold=False, italic=False, underline=0, strikeout=False):
f(second, pos, underline_thickness)
if underline:
t = min(cell_height - underline_position - 1, underline_thickness)
t = underline_thickness
if underline == 2:
t = min(cell_height - underline_position - 1, t)
dl(add_curl if underline == 2 else add_line, underline_position, t)
if strikeout:
pos = int(0.65 * baseline)