Fix leading white spaces trimming
This commit is contained in:
parent
0bd6ba30b4
commit
bb1d62d3bd
|
@ -4096,7 +4096,7 @@ static tmbstr ParseValue( TidyDocImpl* doc, ctmbstr name,
|
||||||
while (TY_(IsWhite)(lexer->lexbuf[start+len-1]) && (len > 0))
|
while (TY_(IsWhite)(lexer->lexbuf[start+len-1]) && (len > 0))
|
||||||
--len;
|
--len;
|
||||||
|
|
||||||
while (TY_(IsWhite)(lexer->lexbuf[start]) && (start < len) && (len > 0))
|
while (TY_(IsWhite)(lexer->lexbuf[start]) && (len > 0))
|
||||||
{
|
{
|
||||||
++start;
|
++start;
|
||||||
--len;
|
--len;
|
||||||
|
|
Loading…
Reference in a new issue