Return 1-based line numbers
This commit is contained in:
parent
0316f56e51
commit
22099b7770
@ -407,7 +407,7 @@ int XML_GetErrorCode(XML_Parser parser)
|
||||
|
||||
int XML_GetErrorLineNumber(XML_Parser parser)
|
||||
{
|
||||
return position.lineNumber;
|
||||
return position.lineNumber + 1;
|
||||
}
|
||||
|
||||
int XML_GetErrorColumnNumber(XML_Parser parser)
|
||||
|
Loading…
Reference in New Issue
Block a user