Skip to content

Commit

Permalink
Merge pull request #224 from liZe/text-hack
Browse files Browse the repository at this point in the history
Rely on the font size for rounding bug workaround
  • Loading branch information
liZe committed Apr 25, 2015
2 parents f0e0829 + bbb42f2 commit 4816788
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion weasyprint/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ def split_first_line(text, style, hinting, max_width, line_width):
# Increase the value a bit to compensate and not introduce
# an unexpected line break.
if max_width is not None:
max_width *= 1.0001
max_width += style.font_size * 0.2
# Step #1: Get a draft layout with the first line
layout = None
if max_width:
Expand Down

0 comments on commit 4816788

Please sign in to comment.