Fix leading white spaces trimming

This commit is contained in:
Evgeniy Yurtaev 2017-02-22 14:09:11 +03:00
parent 0bd6ba30b4
commit bb1d62d3bd

View file

@ -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;