Skip to content

[Bug] Pretty-print XML removes spaces in element content #2916

Description

@chenhbb

When viewing an XML response in the Body → XML tab, enabling formatting (pretty-print) automatically trims whitespace inside element text content.

Significant spaces that exist in the original response body are removed after formatting.
To Reproduce

Capture or send a request that returns an XML response containing spaces inside text nodes (e.g. PRAI or similar).
Open the response in the Body tab.
Switch to XML view and enable formatting / pretty-print.
Observe that the spaces inside the text content have been trimmed.

Expected behavior

XML formatting should only add indentation and line breaks for readability. It should not modify or trim whitespace that exists inside element text nodes.
Screenshots

Image Image Information

Platform: windows
OS: Windows 11
Arch: x86-64
App Version: 3.2.23 (221) (x86_64)

Activity

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions