@Test
    public void newlineCanBeMultipleCharacters() {
        CodeWriter writer = CodeWriter
                .createDefault()
                .insertTrailingNewline()
                .setNewline("\r\n");
        String result = writer
                .openBlock("[", "]", () -> writer.write("hi"))
                .enableNewlines()
                .toString();

        assertThat(result, equalTo("[\r\n    hi\r\n]\r\n"));
    }
\n"
                                + " * Foo \"foo!\"\n"
                                + " *\n"
                                + " * \"baz\"!\n"
                                + " * Yap!\n"
                                + " *     This is indented, in flow of parent.\n"
                                + " *     Yap!\n"
                                + " *     Yap?\n"
                                + " *     # Has a prefix\n"
                                + " *     # Yes\n"
                                + "
smithy-utils/src/test/java/software/amazon/smithy/utils/CodeWriterTest.java