Skip to content

Fix xml print#1539

Draft
suarezrominajulieta wants to merge 1 commit intomasterfrom
feature/xml_fix_print
Draft

Fix xml print#1539
suarezrominajulieta wants to merge 1 commit intomasterfrom
feature/xml_fix_print

Conversation

@suarezrominajulieta
Copy link
Copy Markdown
Collaborator

@suarezrominajulieta suarezrominajulieta commented May 11, 2026

ObjectGene was incorrectly serializing single-field objects in XML mode: when the object had exactly one primitive field, it would skip the field's tag and render the value inline — producing 5 instead of 5.

Four existing tests that were asserting the incorrect behavior are updated. Two new tests are added: one as a direct regression for the single-field case, and one to verify the #text inline path still works.

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.

1 participant