From 84e67995df4b9d0cfada7439613eb02227ec1949 Mon Sep 17 00:00:00 2001 From: Guillaume Ayoub Date: Mon, 11 Mar 2013 19:04:00 +0100 Subject: [PATCH] Don't strip non-breaking spaces when setting width=0 on empty inline boxes --- weasyprint/layout/inlines.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weasyprint/layout/inlines.py b/weasyprint/layout/inlines.py index 29487c9f..52a7b034 100644 --- a/weasyprint/layout/inlines.py +++ b/weasyprint/layout/inlines.py @@ -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