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:
parent
35f02d38a2
commit
7b092af628
@ -217,9 +217,10 @@ js_document_write_do(struct SEE_interpreter *interp, struct SEE_object *self,
|
||||
if (code) {
|
||||
add_to_string(ret, code);
|
||||
mem_free(code);
|
||||
if (newline)
|
||||
add_char_to_string(ret, '\n');
|
||||
}
|
||||
|
||||
if (newline)
|
||||
add_char_to_string(ret, '\n');
|
||||
}
|
||||
#ifdef CONFIG_LEDS
|
||||
/* XXX: I don't know about you, but I have *ENOUGH* of those 'Undefined
|
||||
|
Loading…
Reference in New Issue
Block a user