mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Remove temporary indentation left in the previous commit.
This commit is contained in:
parent
ebf549ba77
commit
408d86f2b1
@ -462,48 +462,44 @@ set_hline(struct html_context *html_context, unsigned char *chars, int charslen,
|
|||||||
for (; chars < end; x++) {
|
for (; chars < end; x++) {
|
||||||
/* ELinks does not use NBSP_CHAR in UTF-8. */
|
/* ELinks does not use NBSP_CHAR in UTF-8. */
|
||||||
|
|
||||||
/* The following is temporarily indented
|
data = utf8_to_unicode(&chars, end);
|
||||||
* just to make the diff easier to read. */
|
if (data == UCS_NO_CHAR) {
|
||||||
{
|
part->spaces[x] = 0;
|
||||||
data = utf8_to_unicode(&chars, end);
|
if (charslen == 1) {
|
||||||
if (data == UCS_NO_CHAR) {
|
/* HR */
|
||||||
part->spaces[x] = 0;
|
unsigned char attr = schar->attr;
|
||||||
if (charslen == 1) {
|
|
||||||
/* HR */
|
|
||||||
unsigned char attr = schar->attr;
|
|
||||||
|
|
||||||
schar->data = *chars++;
|
schar->data = *chars++;
|
||||||
schar->attr = SCREEN_ATTR_FRAME;
|
schar->attr = SCREEN_ATTR_FRAME;
|
||||||
copy_screen_chars(&POS(x, y), schar, 1);
|
copy_screen_chars(&POS(x, y), schar, 1);
|
||||||
schar->attr = attr;
|
schar->attr = attr;
|
||||||
part->char_width[x] = 0;
|
part->char_width[x] = 0;
|
||||||
continue;
|
continue;
|
||||||
} else {
|
|
||||||
unsigned char i;
|
|
||||||
|
|
||||||
for (i = 0; chars < end;i++) {
|
|
||||||
part->document->buf[i] = *chars++;
|
|
||||||
}
|
|
||||||
part->document->buf_length = i;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
good_char:
|
unsigned char i;
|
||||||
if (data == UCS_NO_BREAK_SPACE
|
|
||||||
&& html_context->options->wrap_nbsp)
|
for (i = 0; chars < end;i++) {
|
||||||
data = UCS_SPACE;
|
part->document->buf[i] = *chars++;
|
||||||
part->spaces[x] = (data == UCS_SPACE);
|
|
||||||
if (unicode_to_cell(data) == 2) {
|
|
||||||
schar->data = (unicode_val_T)data;
|
|
||||||
part->char_width[x] = 2;
|
|
||||||
copy_screen_chars(&POS(x++, y), schar, 1);
|
|
||||||
schar->data = UCS_NO_CHAR;
|
|
||||||
part->spaces[x] = 0;
|
|
||||||
part->char_width[x] = 0;
|
|
||||||
} else {
|
|
||||||
part->char_width[x] = unicode_to_cell(data);
|
|
||||||
schar->data = (unicode_val_T)data;
|
|
||||||
}
|
}
|
||||||
|
part->document->buf_length = i;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
good_char:
|
||||||
|
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;
|
||||||
|
copy_screen_chars(&POS(x++, y), schar, 1);
|
||||||
|
schar->data = UCS_NO_CHAR;
|
||||||
|
part->spaces[x] = 0;
|
||||||
|
part->char_width[x] = 0;
|
||||||
|
} else {
|
||||||
|
part->char_width[x] = unicode_to_cell(data);
|
||||||
|
schar->data = (unicode_val_T)data;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
copy_screen_chars(&POS(x, y), schar, 1);
|
copy_screen_chars(&POS(x, y), schar, 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user