From 430d7bc1ae7b3780bb3935c73486c5110b027302 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Fri, 4 Feb 2005 19:41:59 +0000 Subject: [PATCH] [project @ 2005-02-04 19:41:59 by jmb] Prevent assertion failure on pages with white-space: pre-wrap / pre-line svn path=/import/netsurf/; revision=1492 --- render/box.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/render/box.c b/render/box.c index 94c891629..8b043ce50 100644 --- a/render/box.c +++ b/render/box.c @@ -578,7 +578,12 @@ bool convert_xml_to_box(xmlNode *n, struct content *content, /* white-space: pre */ char *text = cnv_space2nbsp(n->content); char *current; - assert(parent_style->white_space == CSS_WHITE_SPACE_PRE); + /* note: pre-wrap/pre-line are unimplemented */ + assert(parent_style->white_space == CSS_WHITE_SPACE_PRE || + parent_style->white_space == + CSS_WHITE_SPACE_PRE_LINE || + parent_style->white_space == + CSS_WHITE_SPACE_PRE_WRAP); if (!text) goto no_memory; if (parent_style->text_transform != CSS_TEXT_TRANSFORM_NONE)