1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05:00

Clearify the code a bit

This commit is contained in:
Jonas Fonseca 2006-01-02 03:06:47 +01:00 committed by Jonas Fonseca
parent dc10be626e
commit 58c31f44a0

View File

@ -135,8 +135,10 @@ scan_sgml_text_token(struct dom_scanner *scanner, struct dom_scanner_token *toke
} else {
if (is_sgml_space(first_char)) {
if (scanner->count_lines)
string--;
if (scanner->count_lines
&& is_sgml_newline(first_char))
scanner->lineno++;
skip_sgml_space(scanner, &string);
type = string < scanner->end && is_sgml_text(*string)
? SGML_TOKEN_TEXT : SGML_TOKEN_SPACE;