mirror of
https://github.com/Kozea/WeasyPrint.git
synced 2024-10-05 00:21:15 +03:00
Don't strip non-breaking spaces when setting width=0 on empty inline boxes
This commit is contained in:
parent
9b90c9ee05
commit
84e67995df
@ -733,7 +733,7 @@ def split_text_box(context, box, available_width, line_width, skip):
|
||||
'Expected nothing or a preserved line break' % (between,))
|
||||
resume_at += skip
|
||||
|
||||
if box and not preserved_line_break and not new_text.strip():
|
||||
if box and not preserved_line_break and not new_text.strip(' '):
|
||||
box.width = 0
|
||||
|
||||
return box, resume_at, preserved_line_break
|
||||
|
Loading…
Reference in New Issue
Block a user