1
1
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:
Guillaume Ayoub 2019-07-08 16:34:44 +02:00
parent 8db46ff25d
commit 2ab52a7c8c

View File

@ -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