mirror of
https://github.com/Kozea/WeasyPrint.git
synced 2024-10-05 08:27:22 +03:00
Deactivate layout created for justified text
This commit is contained in:
parent
8db46ff25d
commit
2ab52a7c8c
@ -1253,6 +1253,7 @@ def add_word_spacing(context, box, justification_spacing, x_advance):
|
||||
layout = create_layout(
|
||||
box.text, box.style, context, float('inf'),
|
||||
box.justification_spacing)
|
||||
layout.deactivate()
|
||||
extra_space = justification_spacing * nb_spaces
|
||||
x_advance += extra_space
|
||||
box.width += extra_space
|
||||
|
Loading…
Reference in New Issue
Block a user