diff --git a/ChangeLog b/ChangeLog index a86108aa..cdd3634d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Fri Jun 8 07:20:46 CEST 2001 Daniel Veillard + + * HTMLtree.c: when in a pre element no formatting space should + be added. + Wed Jun 6 18:07:36 CEST 2001 Daniel Veillard * configure.in: add -mieee to CFLAGS when compiling on Linux/alpha diff --git a/HTMLtree.c b/HTMLtree.c index be9b2f94..fac37fef 100644 --- a/HTMLtree.c +++ b/HTMLtree.c @@ -975,7 +975,9 @@ htmlNodeDumpOutput(xmlOutputBufferPtr buf, xmlDocPtr doc, xmlOutputBufferWriteString(buf, ">"); if (cur->next != NULL) { if ((cur->next->type != HTML_TEXT_NODE) && - (cur->next->type != HTML_ENTITY_REF_NODE)) + (cur->next->type != HTML_ENTITY_REF_NODE) && + (cur->parent != NULL) && + (!xmlStrEqual(cur->parent->name, BAD_CAST "pre"))) xmlOutputBufferWriteString(buf, "\n"); } return; @@ -991,7 +993,9 @@ htmlNodeDumpOutput(xmlOutputBufferPtr buf, xmlDocPtr doc, } if (cur->next != NULL) { if ((cur->next->type != HTML_TEXT_NODE) && - (cur->next->type != HTML_ENTITY_REF_NODE)) + (cur->next->type != HTML_ENTITY_REF_NODE) && + (cur->parent != NULL) && + (!xmlStrEqual(cur->parent->name, BAD_CAST "pre"))) xmlOutputBufferWriteString(buf, "\n"); } return;