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:
@@ -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=""
|
||||
|
Reference in New Issue
Block a user