1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-30 03:26:23 -04:00

Fix add_document_to_string to actually add stuff

Revision 1.147 (14 months, 2 weeks ago) broke the logic so that only
frame characters were added. This fixes that change, getting us halfway
back to a working current_document_formatted function for Lua.
This commit is contained in:
Miciah Dashiel Butler Masters 2006-01-08 07:34:59 +00:00 committed by Miciah Dashiel Butler Masters
parent bc55cd55cb
commit 38fe0f7292

View File

@ -335,8 +335,9 @@ add_document_to_string(struct string *string, struct document *document)
if (!isscreensafe(data)) {
white++;
continue;
} else if (frame && data >= 176 && data < 224) {
data = frame_dumb[data - 176];
} else {
if (frame && data >= 176 && data < 224)
data = frame_dumb[data - 176];
if (data <= ' ') {
/* Count spaces. */