Skip to content

Commit e44f4d1

Browse files
authored
Merge pull request htacg#497 from seaburg/fix_value_trimming
Fix leading white spaces trimming
2 parents 13c92bc + bb1d62d commit e44f4d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lexer.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -4098,7 +4098,7 @@ static tmbstr ParseValue( TidyDocImpl* doc, ctmbstr name,
40984098
while (TY_(IsWhite)(lexer->lexbuf[start+len-1]) && (len > 0))
40994099
--len;
41004100

4101-
while (TY_(IsWhite)(lexer->lexbuf[start]) && (start < len) && (len > 0))
4101+
while (TY_(IsWhite)(lexer->lexbuf[start]) && (len > 0))
41024102
{
41034103
++start;
41044104
--len;

0 commit comments

Comments
 (0)