Incorrect line number counting when parsing comments with empty lines with CRLF endings
When parsing an XML multi-line comment that contains an empty line, line numbers as returned by xmlGetLineNo() will be incorrect for all following lines (they are larger by 1 than they should be). A line number seems to be counted twice.
This only happens for files with CRLF line endings. The effect can accumulate: The discrepancy grows by 1 with each comment that contains one or more empty lines.
I've tried debugging a bit, and noticed that xmlParseCommentComplex() is entered when such an empty line is encountered. This is probably the moment when the line is counted twice.
Edited by claos9