/src/main/java/org/htmlunit/util/XmlUtils.java
if ( i > 0) {
if ( wasBlank_ && result > -1 ) {
public void close() throws IOException { reader_.close(); } @Override public int read(final char[] cbuf, final int off, final int len) throws IOException { int result = reader_.read(cbuf, off, len); <extra_id_0> for (int i = 0; i < result; i++) { final char ch = cbuf[off + i]; if (!Character.isWhitespace(ch)) { wasBlank_ = false; if (i > 0) { System.arraycopy(cbuf, i, cbuf, off, len - i);