protected void formatTo()

in log4j-docgen/src/main/java/org/apache/logging/log4j/docgen/processor/internal/BlockImpl.java [37:48]


    protected void formatTo(final StringBuilder buffer) {
        if (getStyle() != null) {
            buffer.append('[').append(getStyle()).append("]\n");
        }
        if (LISTING_CONTEXT.equals(getContext())) {
            buffer.append("----\n");
        }
        lines.forEach(line -> buffer.append(line).append('\n'));
        if (LISTING_CONTEXT.equals(getContext())) {
            buffer.append("----\n");
        }
    }