LineWrapper appendText(String text, int indentAfter) {
            StringTokenizer tokenizer = new StringTokenizer(text, " \t\n\r\f", true);
            boolean pendingCarriage = false;
            while (tokenizer.hasMoreElements()) {
                String next = tokenizer.nextToken();
                if (next.equals("\n")) {
                    pendingCarriage = false;
                    newLine();
                } else {
                    if (pendingCarriage) {
                        newLine();
                        pendingCarriage = false;
                    }
                    if (next.equals("\r")) {
                        pendingCarriage = true;
                    } else {
                        appendWithinLine(next);
                    }
                }
            }
            if (pendingCarriage) {
                newLine();
            }
            indent(indentAfter);
            newLine();
            return this;
        }
Prints the generated help to the given printer.

@param colors Color formatter.
@param printer CliPrinter to write to.
smithy-cli/src/main/java/software/amazon/smithy/cli/HelpPrinter.java