diff --git a/src/document/libdom/renderer.c b/src/document/libdom/renderer.c index 72d5d3d1a..d1245b60b 100644 --- a/src/document/libdom/renderer.c +++ b/src/document/libdom/renderer.c @@ -124,9 +124,7 @@ dump_dom_element(void *mapa, struct string *buf, dom_node *node, int depth) int length = dom_string_byte_length(str); const char *string_text = dom_string_data(str); - if (!((length == 1) && (*string_text == '\n'))) { - add_bytes_to_string(buf, string_text, length); - } + add_bytes_to_string(buf, string_text, length); dom_string_unref(str); } return true; diff --git a/src/document/libdom/renderer2.c b/src/document/libdom/renderer2.c index b088348a3..16e35e520 100644 --- a/src/document/libdom/renderer2.c +++ b/src/document/libdom/renderer2.c @@ -126,9 +126,7 @@ dump_dom_element(void *mapa, struct string *buf, dom_node *node, int depth) int length = dom_string_byte_length(str); const char *string_text = dom_string_data(str); - if (!((length == 1) && (*string_text == '\n'))) { - add_bytes_to_string(buf, string_text, length); - } + add_bytes_to_string(buf, string_text, length); dom_string_unref(str); } return true;