13 years ago
Pretty Print trimming spaces?
I've found that Pretty Print changes values in XML response messages and influences assertions as well, because of leading (and possibly trailing) spaces being trimmed.
So:
<element> data</element> becomes <element>data</element> with Pretty Print turned on, and any assertion on the value including those leading spaces will fail, since they were removed by Pretty Print. With Pretty Print turned off, the spaces remain and the assertion succeeds.
I'd like to be able to use Pretty Print, without it actually influencing values in XML elements and assertions to fail because of this.
Is this intentional? Can I circumvent this behaviour without losing the Pretty Print functionality?
Thanks in advance for any help!
So:
<element> data</element> becomes <element>data</element> with Pretty Print turned on, and any assertion on the value including those leading spaces will fail, since they were removed by Pretty Print. With Pretty Print turned off, the spaces remain and the assertion succeeds.
I'd like to be able to use Pretty Print, without it actually influencing values in XML elements and assertions to fail because of this.
Is this intentional? Can I circumvent this behaviour without losing the Pretty Print functionality?
Thanks in advance for any help!