mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Skip spaces immediately when recognising '<?ident'
This commit is contained in:
parent
8c9324cc37
commit
fcf7677584
@ -372,6 +372,9 @@ scan_sgml_element_token(struct dom_scanner *scanner, struct dom_scanner_token *t
|
||||
|
||||
scanner->state = SGML_STATE_PROC_INST;
|
||||
|
||||
real_length = string - token->string.string;
|
||||
skip_sgml_space(scanner, &string);
|
||||
|
||||
} else if (*string == '/') {
|
||||
string++;
|
||||
skip_sgml_space(scanner, &string);
|
||||
@ -521,7 +524,6 @@ scan_sgml_tokens(struct dom_scanner *scanner)
|
||||
scan_sgml_text_token(scanner, current);
|
||||
|
||||
} else {
|
||||
skip_sgml_space(scanner, &scanner->position);
|
||||
scan_sgml_proc_inst_token(scanner, current);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user