Skip to content

Commit

Permalink
Fix bug in encoding whitespaces introduced with bugfix of #38.
Browse files Browse the repository at this point in the history
(cherry picked from commit b408f43)
  • Loading branch information
FilipJirsak committed Apr 11, 2020
1 parent f41f133 commit 083c0e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/dom4j/io/XMLWriter.java
Expand Up @@ -1662,7 +1662,7 @@ protected String escapeElementEntities(String text) {
case '\r':
// don't encode standard whitespace characters
if (preserve) {
entity = String.valueOf(c);
entity = String.valueOf((char) c);
}
break;

Expand Down

0 comments on commit 083c0e6

Please sign in to comment.