xmllint fixer must read from stdin - not buffer filename (#4884)

The current xmllint fixer reads and formats the file that a buffer is
associated with from disk instead of accepting input from stdin. This
has the side effect that if the filename is changed in the buffer, but
not saved yet, the fixer discards all the pending changes and replaces
the buffer contents with the formatted text from the file contents on
disk.
This commit is contained in:
Vangelis
2025-01-10 05:34:56 +01:00
committed by GitHub
parent 3ca2a9ea3c
commit 83ec182bdf
3 changed files with 15 additions and 18 deletions

View File

@@ -0,0 +1,4 @@
<?xml version="1.0"?>
<xml>
<test id="12"/>
</xml>