]> git.lyx.org Git - features.git/commit
XML: improve formatting of error message for unrecognised tag type.
authorThibaut Cuvelier <tcuvelier@lyx.org>
Thu, 22 Dec 2022 03:10:25 +0000 (04:10 +0100)
committerThibaut Cuvelier <tcuvelier@lyx.org>
Thu, 22 Dec 2022 03:10:25 +0000 (04:10 +0100)
commit4f314567b6a8d87d472c3388523a3e093560b652
tree9f84661b2ef43bcf3efde06efbf515691458a278
parent43d096f6471e0c52779ab1ed28349c3667703bfc
XML: improve formatting of error message for unrecognised tag type.

Before, there was always a space after the tag, even when there were no attributes. Now, the space is output conditionally, so that the output makes more sense.

Before, one space too many for the tag name (title), casting doubt on whether the code had this space hard coded or not:

<!-- Output Error: Unrecognised tag type 'para' for 'title ' -->

After, no such space:

<!-- Output Error: Unrecognised tag type 'para' for 'title' -->
src/xml.cpp