hunterhacker/jdom — Issue #55: SAXHandler ignores zero-length CDATA sections.
Author: rolfl
Created: 2011-12-27 22:46:30+00:00
State: open

See title. Current code is ( https://github.com/hunterhacker/jdom/blob/95cec47534008c3caf189f233f9a8fd0625ede50/core/src/java/org/jdom2/input/sax/SAXHandler.java#L726 ):

```java
public void characters(char[] ch, int start, int length)
throws SAXException {

if (suppress || (length == 0))
return;

if (previousCDATA != inCDATA) {
flushCharacters();
}

textBuffer.append(ch, start, length);
}
```

The above code does not add 0-length data to the flushbuffers.... This presumably saves time, but, it means that 0-length items are ignored.

Need to add some tests to see what else is broken with this.