1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-10-27 08:00:32 -04:00

set_hline: Outdent some code.

This commit is contained in:
Kalle Olavi Niemitalo 2007-04-26 07:38:37 +03:00 committed by Witold Filipczyk
parent 49a3bef153
commit 3baf35b30e

View File

@ -499,14 +499,18 @@ set_hline(struct html_context *html_context, unsigned char *chars, int charslen,
part->document->buf_length = i;
break;
}
} else {
/* not reached */
}
good_char:
if (data == UCS_SOFT_HYPHEN)
continue;
if (data == UCS_NO_BREAK_SPACE
&& html_context->options->wrap_nbsp)
data = UCS_SPACE;
part->spaces[x] = (data == UCS_SPACE);
if (unicode_to_cell(data) == 2) {
schar->data = (unicode_val_T)data;
part->char_width[x] = 2;
@ -518,7 +522,6 @@ good_char:
part->char_width[x] = unicode_to_cell(data);
schar->data = (unicode_val_T)data;
}
}
copy_screen_chars(&POS(x++, y), schar, 1);
} /* while chars < end */
} else { /* not UTF-8 */