private boolean isWhitespace(final char c) {
        return c == ' ' || c == '\t' || c == '\n' || c == '\r';
    }
Tests if a character is a whitespace character.

@param c The character to test.
@return True if the character is a space, tab, new line or carriage
return.
stroom-core-client-widget/src/main/java/stroom/editor/client/model/XmlFormatter.java