Automattic\WooCommerce\EmailEditorVendor\Sabberworm\CSS

OutputFormat::createPretty │ public static │ WC 1.0

Creates an instance of this class with a preset for pretty formatting.

Method of the class: OutputFormat{}

No Hooks.

Returns

self.

Usage

$result = OutputFormat::createPretty();

OutputFormat::createPretty() code WC 11.3.0

public static function createPretty()
{
    $format = self::create();
    $format->set('Space*Rules', "\n")
        ->set('Space*Blocks', "\n")
        ->setSpaceBetweenBlocks("\n\n")
        ->set('SpaceAfterListArgumentSeparators', [',' => ' '])
        ->setRenderComments(true);
    return $format;
}