public T setNewline(String newline) {
        if (newline.isEmpty()) {
            return disableNewlines();
        } else {
            currentState.newline = newline;
            return enableNewlines();
        }
    }
Sets the character used to represent newlines in the current state
("\n" is the default).

<p>When the provided string is empty (""), then newlines are disabled
in the current state. This is exactly equivalent to calling
{@link #disableNewlines()}, and does not actually change the newline
character of the current state.

<p>Setting the newline character to a non-empty string implicitly
enables newlines in the current state.

@param newline Newline character to use.
@return Returns self.
smithy-utils/src/main/java/software/amazon/smithy/utils/AbstractCodeWriter.java