mirror of
https://github.com/rkd77/elinks.git
synced 2025-04-18 00:47:36 -04:00
set_hline: Outdent some code.
This commit is contained in:
parent
49a3bef153
commit
3baf35b30e
@ -499,14 +499,18 @@ set_hline(struct html_context *html_context, unsigned char *chars, int charslen,
|
|||||||
part->document->buf_length = i;
|
part->document->buf_length = i;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else {
|
/* not reached */
|
||||||
|
}
|
||||||
|
|
||||||
good_char:
|
good_char:
|
||||||
if (data == UCS_SOFT_HYPHEN)
|
if (data == UCS_SOFT_HYPHEN)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (data == UCS_NO_BREAK_SPACE
|
if (data == UCS_NO_BREAK_SPACE
|
||||||
&& html_context->options->wrap_nbsp)
|
&& html_context->options->wrap_nbsp)
|
||||||
data = UCS_SPACE;
|
data = UCS_SPACE;
|
||||||
part->spaces[x] = (data == UCS_SPACE);
|
part->spaces[x] = (data == UCS_SPACE);
|
||||||
|
|
||||||
if (unicode_to_cell(data) == 2) {
|
if (unicode_to_cell(data) == 2) {
|
||||||
schar->data = (unicode_val_T)data;
|
schar->data = (unicode_val_T)data;
|
||||||
part->char_width[x] = 2;
|
part->char_width[x] = 2;
|
||||||
@ -518,7 +522,6 @@ good_char:
|
|||||||
part->char_width[x] = unicode_to_cell(data);
|
part->char_width[x] = unicode_to_cell(data);
|
||||||
schar->data = (unicode_val_T)data;
|
schar->data = (unicode_val_T)data;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
copy_screen_chars(&POS(x++, y), schar, 1);
|
copy_screen_chars(&POS(x++, y), schar, 1);
|
||||||
} /* while chars < end */
|
} /* while chars < end */
|
||||||
} else { /* not UTF-8 */
|
} else { /* not UTF-8 */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user