fix: lexer get balise with '\t' '\n' ' ' in it

This commit is contained in:
_N3m0 2024-01-02 21:50:54 +01:00
parent 5bca08da05
commit 3eb96aabf0
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ Token* nexttoken(void){
int len = 0;
cursor = nextchar();
while (*cursor != '>' && *cursor != ' ' && len < HTML_BALISE_LEN){
while (*cursor != '>' && *cursor != ' ' && *cursor != '\n' && *cursor != '\t' && len < HTML_BALISE_LEN){
balise[len] = *cursor;
len++;
cursor = nextchar();