1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-21 14:53:44 +03:00

Fix line numbers in error messages for mismatched tags

Commit 62150ed2 introduced a small regression in the error messages for
mismatched tags. This typically only affected messages after the first
mismatch, but with custom SAX handlers all line numbers would be off.

This also fixes line numbers in the SAX push parser which were never
handled correctly.
This commit is contained in:
Nick Wellnhofer
2021-05-07 10:51:38 +02:00
parent 7279d23636
commit 3e80560d4b
4 changed files with 28 additions and 20 deletions

View File

@@ -10,7 +10,7 @@ import libxml2
libxml2.debugMemory(1)
expect="""--> (3) xmlns: URI foo is not absolute
--> (4) Opening and ending tag mismatch: x line 0 and y
--> (4) Opening and ending tag mismatch: x line 1 and y
"""
err=""