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

SEE: document.writeln: always add new line

Add the new-line character even if SEE_value_to_unsigned_char returns
NULL.
This commit is contained in:
Miciah Dashiel Butler Masters 2006-02-12 04:25:10 +00:00 committed by Miciah Dashiel Butler Masters
parent 35f02d38a2
commit 7b092af628

View File

@ -217,9 +217,10 @@ js_document_write_do(struct SEE_interpreter *interp, struct SEE_object *self,
if (code) { if (code) {
add_to_string(ret, code); add_to_string(ret, code);
mem_free(code); mem_free(code);
if (newline)
add_char_to_string(ret, '\n');
} }
if (newline)
add_char_to_string(ret, '\n');
} }
#ifdef CONFIG_LEDS #ifdef CONFIG_LEDS
/* XXX: I don't know about you, but I have *ENOUGH* of those 'Undefined /* XXX: I don't know about you, but I have *ENOUGH* of those 'Undefined