1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[dom] Do not treat single '\n' specially

This commit is contained in:
Witold Filipczyk 2023-05-28 15:48:14 +02:00
parent edac06cd6d
commit df7c4c0579
2 changed files with 2 additions and 6 deletions

View File

@ -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);
}
dom_string_unref(str);
}
return true;

View File

@ -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);
}
dom_string_unref(str);
}
return true;