Skip to content

Commit

Permalink
Fix FasterXML#47 write white-space events as white-space events inste…
Browse files Browse the repository at this point in the history
…ad of text/CData
  • Loading branch information
hxc9 committed May 4, 2018
1 parent 3175647 commit de337f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/ctc/wstx/sw/BaseStreamWriter.java
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,7 @@ public void copyEventFromReader(XMLStreamReader2 sr, boolean preserveEventData)

// 28-Mar-2017, tatu: Various optimization do not work well when validation so:
if (mValidator != null) {
writeCharacters(sr.getText());
writeSpace(sr.getText());
} else {
sr.getText(wrapAsRawWriter(), preserveEventData);
}
Expand Down

0 comments on commit de337f0

Please sign in to comment.