mirror of
https://github.com/Kozea/WeasyPrint.git
synced 2024-10-05 08:27:22 +03:00
Remove broken optimization
This commit is contained in:
parent
a7b192c1d3
commit
7be183f234
@ -988,7 +988,7 @@ def split_first_line(text, style, context, max_width, justification_spacing):
|
||||
second_line_text = text
|
||||
|
||||
next_word = second_line_text.split(' ', 1)[0]
|
||||
if next_word and ' ' in second_line_text:
|
||||
if next_word:
|
||||
if space_collapse:
|
||||
# next_word might fit without a space afterwards
|
||||
# only try when space collapsing is allowed
|
||||
|
Loading…
Reference in New Issue
Block a user