@@ -0,0 +1,1388 @@
+package com.simplifyops.toolbelt;%0A%0Aimport java.util.regex.Pattern;%0A%0Aimport static com.simplifyops.toolbelt.NiceFormatter.NL;%0A%0A/**%0A * Created by greg on 11/18/16.%0A */%0Apublic class PrefixFormatter implements OutputFormatter %7B%0A    String prefix;%0A    OutputFormatter base;%0A%0A    public PrefixFormatter(final String prefix) %7B%0A        this.prefix = prefix;%0A        this.base = new ToStringFormatter();%0A    %7D%0A%0A    public PrefixFormatter(final String prefix, final OutputFormatter base) %7B%0A        this.prefix = prefix;%0A        this.base = base;%0A    %7D%0A%0A    @Override%0A    public String format(final Object o) %7B%0A        return addPrefix(prefix, null != base ? base.format(o) : o.toString());%0A    %7D%0A%0A    private String addPrefix(final String prefix, final String text) %7B%0A        StringBuilder sb = new StringBuilder();%0A        indent(text, sb, true, prefix);%0A        return sb.toString();%0A    %7D%0A%0A    private void indent(final String text, final StringBuilder sb, final boolean firstLine, final String prefix) %7B%0A        if (text.contains(NL)) %7B%0A            for (String s : text.split(Pattern.quote(NL))) %7B%0A                sb.append(this.prefix).append(s).append(NL);%0A            %7D%0A        %7D else %7B%0A            sb.append(this.prefix).append(text);%0A        %7D%0A    %7D%0A%0A    @Override%0A    public OutputFormatter withBase(final OutputFormatter base) %7B%0A        return new PrefixFormatter(prefix, base);%0A    %7D%0A%7D%0A

add prefix formatter