Skip to content

Problems with Newline Characters in Attributes #177

@jaunruh

Description

@jaunruh

I am using xml-conduit to parse xml, adjust it and render it again.

I don't know if this is a bug or expected behaviour, but when parsing newlines encoded as 
 they are stored as newlines \n in memory. When rendered as xml they do not seem to be replaced by 
.

So following element goes from:

<someElement id="1" name="Picture 1" descr="A picture containing window, indoor&#xA;&#xA;Description automatically generated"/>

to:

<someElement id="1" name="Picture 1" descr="A picture containing window, indoor

Description automatically generated"/>

Is that expected behaviour? I have found the ParsingSetting: DecodeIllegalCharacters but the output type is just a single character. So I am not sure how exactly I would use this to prevent such behaviour. I also didn't find any RenderSettings that could be used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions