]> git.ipfire.org Git - thirdparty/git.git/commit
test(junit): avoid line feeds in XML attributes
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Sat, 21 May 2022 22:18:47 +0000 (22:18 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sat, 21 May 2022 23:25:55 +0000 (16:25 -0700)
commit270ccd2a677766b7a7e22fdc16d6bb310eeda65b
tree4d249dc8cde69bdcb5da718d7983e9b37579b75c
parent78d5e4cfb4b9f023549596c0d6fd0afdef57d571
test(junit): avoid line feeds in XML attributes

In the test case's output, we do want newline characters, but in the XML
attributes we do not want them.

However, the `xml_attr_encode` function always adds a Line Feed at the
end (which are then encoded as `&#x0a;`, even for XML attributes.

This seems not to faze Azure Pipelines' XML parser, but it still is
incorrect, so let's fix it.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/test-lib-junit.sh