diff --git a/src/lexer.c b/src/lexer.c index aee3e02..efefe74 100644 --- a/src/lexer.c +++ b/src/lexer.c @@ -4098,6 +4098,7 @@ static tmbstr ParseValue( TidyDocImpl* doc, ctmbstr name, while (TY_(IsWhite)(lexer->lexbuf[start+len-1]) && (len > 0)) --len; + /* Issue #497 - Fix leading space trimming */ while (TY_(IsWhite)(lexer->lexbuf[start]) && (len > 0)) { ++start;