Skip to content

Preservation of whitespace for strings? #116

@salk31

Description

@salk31

Hi,

Sorry in advance if this is a bad issue but I'm really out of my depth as very new to SOAP and SUDS.

In the code I'm working on, carriage returns are getting changed into new lines while going via SUDS. I've not seen this problem in the Java based code.

I might be looking at the wrong spec but https://www.w3.org/TR/xmlschema-2/#rf-whiteSpace suggests the default (which I think it is in our XSD) is "preserve". This makes sense to me and would obviously be helpful in my case.

Is this just a limitation of SUDS that it uses standard XML whitespace handling?

I had a quick look at the current code and I'd be up for attempting a pull request (even if just to change the default behaviour for string) but I might
have totally the wrong end of the stick.

I've got a monkey patch that works for my narrow case but it would be nice if it was in core SUDS.

Thanks

Sam

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions