Skip to content

Commit

Permalink
fix for merging CDATAs producing an ending tag ]]> in the resulting C…
Browse files Browse the repository at this point in the history
…DATA
  • Loading branch information
siddhadev committed Nov 25, 2013
1 parent a9a2f86 commit 81051ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/java/org/jdom/input/SAXHandler.java
Expand Up @@ -731,7 +731,7 @@ public void characters(char[] ch, int start, int length)
if (suppress || (length == 0))
return;

if (previousCDATA != inCDATA) {
if (previousCDATA != inCDATA || (ch[start] == '>' || (ch[start] == ']' && ch[start] == '>') )) {
flushCharacters();
}

Expand Down

0 comments on commit 81051ae

Please sign in to comment.