mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-24 04:56:50 +03:00
[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
This commit is contained in:
parent
b07582615b
commit
430d7bc1ae
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user