protected void writePrintln() throws IOException  {
        if (format.isNewlines()) {
            writer.write( format.getLineSeparator() );
        }
    }
<p>
This will print a new line only if the newlines flag was set to true
</p>
@throws IOException if the new line could not be written
xmppserver/src/main/java/org/jivesoftware/util/XMLWriter.java