]> git.ipfire.org Git - thirdparty/gettext.git/commit
its: During merge, copy also the XML node's attributes.
authorBruno Haible <bruno@clisp.org>
Tue, 1 Oct 2024 19:28:37 +0000 (21:28 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 1 Oct 2024 19:28:37 +0000 (21:28 +0200)
commit3161ab0f74d0d10e21090288f5381de94ead23a1
tree159d448e4012c3462dac789d5976eb425add1df9
parenteaf658bed81b831f84c53f27128696aacf8356ac
its: During merge, copy also the XML node's attributes.

Rationale: In XHTML, attributes like 'style' are used for rendering.

* gettext-tools/src/its.c (_its_copy_node_with_attributes): New function.
(its_merge_context_merge_node): Use it.
* gettext-tools/tests/msgfmt-xml-1: Update expected results.
* gettext-tools/tests/msgfmt-xml-2: Likewise.
gettext-tools/src/its.c
gettext-tools/tests/msgfmt-xml-1
gettext-tools/tests/msgfmt-xml-2