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:
parent
edac06cd6d
commit
df7c4c0579
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user