Merge pull request #497 from seaburg/fix_value_trimming

Fix leading white spaces trimming
This commit is contained in:
Geoff McLane 2017-02-24 14:30:39 +01:00 committed by GitHub
commit e44f4d1469
1 changed files with 1 additions and 1 deletions

View File

@ -4098,7 +4098,7 @@ static tmbstr ParseValue( TidyDocImpl* doc, ctmbstr name,
while (TY_(IsWhite)(lexer->lexbuf[start+len-1]) && (len > 0))
--len;
while (TY_(IsWhite)(lexer->lexbuf[start]) && (start < len) && (len > 0))
while (TY_(IsWhite)(lexer->lexbuf[start]) && (len > 0))
{
++start;
--len;