You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
789 B
45 lines
789 B
<?php
|
|
/**
|
|
* SCSSPHP
|
|
*
|
|
* @copyright 2012-2018 Leaf Corcoran
|
|
*
|
|
* @license http://opensource.org/licenses/MIT MIT
|
|
*
|
|
* @link http://leafo.github.io/scssphp
|
|
*/
|
|
|
|
namespace Leafo\ScssPhp\Formatter;
|
|
|
|
use Leafo\ScssPhp\Formatter;
|
|
|
|
/**
|
|
* Compact formatter
|
|
*
|
|
* @author Leaf Corcoran <leafot@gmail.com>
|
|
*/
|
|
class Compact extends Formatter
|
|
{
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function __construct()
|
|
{
|
|
$this->indentLevel = 0;
|
|
$this->indentChar = '';
|
|
$this->break = '';
|
|
$this->open = ' {';
|
|
$this->close = "}\n\n";
|
|
$this->tagSeparator = ',';
|
|
$this->assignSeparator = ':';
|
|
$this->keepSemicolons = true;
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function indentStr()
|
|
{
|
|
return ' ';
|
|
}
|
|
}
|
|
|