From 391defb1c4cff592aa228ced1c6278d30ea31030 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Wed, 3 Oct 2012 17:14:11 +0100 Subject: Don't convert spaces to non-breaking spaces inside white-space:pre. Instead, handle not wrapping in layout. --- render/layout.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'render/layout.c') diff --git a/render/layout.c b/render/layout.c index ead01acf0..0523cf9db 100644 --- a/render/layout.c +++ b/render/layout.c @@ -2700,7 +2700,9 @@ bool layout_line(struct box *first, int *width, int *y, size_t space = 0; int w; bool no_wrap = css_computed_white_space( - split_box->style) == CSS_WHITE_SPACE_NOWRAP; + split_box->style) == CSS_WHITE_SPACE_NOWRAP || + css_computed_white_space( + split_box->style) == CSS_WHITE_SPACE_PRE; x = x_previous; -- cgit v1.2.3