Skip to content

Add Transformers.Compact for non-indented XML output (#54)#304

Open
bibonix wants to merge 9 commits intoyegor256:masterfrom
bibonix:fix/issue-54-pretty-print
Open

Add Transformers.Compact for non-indented XML output (#54)#304
bibonix wants to merge 9 commits intoyegor256:masterfrom
bibonix:fix/issue-54-pretty-print

Conversation

@bibonix
Copy link
Copy Markdown

@bibonix bibonix commented May 8, 2026

Fixes #54.

Adds a new Transformers.Compact class that produces XML output without pretty-printing (no indentation), while keeping the XML declaration. This is parallel to the existing Transformers.Document (with declaration and indent) and Transformers.Node (without declaration but indented).

Users can now disable pretty printing with:

String xml = new Xembler(directives, new Transformers.Compact()).xml();

New tests cover the Compact behavior as well as the existing Document and Node behaviors.

bibonix added 2 commits May 8, 2026 16:22
Tests demonstrate the need for a Compact transformer that
disables pretty-printing while keeping the XML declaration.
Introduces a new Transformers.Compact class that produces XML output
with the XML declaration but without pretty-printing (no indentation).
This gives users an easy way to switch pretty-print OFF, parallel to
the existing Document (declaration + indent) and Node (no declaration
+ indent) transformer factories.
@bibonix bibonix mentioned this pull request May 8, 2026
bibonix added 7 commits May 8, 2026 16:45
The 0.23.2 maven plugin version references docker image
`yegor256/hone:0.23.2` which is not published on Docker Hub,
causing every CI build with docker available to fail at the
`hone:pull` step. Version 0.23.3 has a matching docker image.
The hone-maven-plugin's `skipWithoutDocker` only checks if the
docker binary exists, not whether the daemon is running. macOS GH
runners have the docker binary but no running daemon, causing the
`hone:pull` step to fail before any tests run. Pass
`-Dhone.skip=true` from the workflow to bypass it consistently
across all matrix entries (Linux still runs the optimization in
the rultor merge build).
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 8, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pretty print ON/OFF

1 participant