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,25 +499,28 @@ 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
&& html_context->options->wrap_nbsp) if (data == UCS_NO_BREAK_SPACE
data = UCS_SPACE; && html_context->options->wrap_nbsp)
part->spaces[x] = (data == UCS_SPACE); data = UCS_SPACE;
if (unicode_to_cell(data) == 2) { part->spaces[x] = (data == UCS_SPACE);
schar->data = (unicode_val_T)data;
part->char_width[x] = 2; if (unicode_to_cell(data) == 2) {
copy_screen_chars(&POS(x++, y), schar, 1); schar->data = (unicode_val_T)data;
schar->data = UCS_NO_CHAR; part->char_width[x] = 2;
part->spaces[x] = 0; copy_screen_chars(&POS(x++, y), schar, 1);
part->char_width[x] = 0; schar->data = UCS_NO_CHAR;
} else { part->spaces[x] = 0;
part->char_width[x] = unicode_to_cell(data); part->char_width[x] = 0;
schar->data = (unicode_val_T)data; } 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);
} /* while chars < end */ } /* while chars < end */