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
  • Loading branch information
FilipJirsak committed Jul 1, 2018
1 parent b3d9226 commit b408f43
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 b408f43

Please sign in to comment.