Skip to content

[pull] master from tdewolff:master - #295

Merged
pull[bot] merged 2 commits into
kokizzu:masterfrom
tdewolff:master
Jul 31, 2026
Merged

[pull] master from tdewolff:master#295
pull[bot] merged 2 commits into
kokizzu:masterfrom
tdewolff:master

Conversation

@pull

@pull pull Bot commented Jul 31, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

hdimer and others added 2 commits July 31, 2026 09:34
A whitespace character reference like 	 in text was decoded to a
literal tab on minify, which the next minify pass then collapsed to a
space (<x>a&#9;b</x> -> <x>a\tb</x> -> <x>a b</x>), so minifying was not
idempotent.

AttrRevEntitiesMap already keeps these references for attribute values.
Add the same entries to TextRevEntitiesMap and point the SVG text path
at it (it was passing nil) so text content matches attributes. Only
explicit references are affected; literal whitespace still normalizes.

Fixes #1007
xml/svg: keep whitespace character references in text content
@pull pull Bot locked and limited conversation to collaborators Jul 31, 2026
@pull pull Bot added the ⤵️ pull label Jul 31, 2026
@pull
pull Bot merged commit 6181df9 into kokizzu:master Jul 31, 2026
0 of 16 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants