public static String indent(String text) {
        return indent + text.replaceAll("\\r?\\n", nl + indent);
    }
Indents one level after each new-line-character as defined by
<code>nl()</code>.

@param text  the text to indent.
@return      the indented text.
common-parent/codegen/src/main/java/com/speedment/common/codegen/util/Formatting.java