shouldHaveSpaceBeforeToken: function(lastToken, lastContent, token, state, content, isComment)
{
if (!token) {
shouldHaveSpaceBeforeToken: function(lastToken, lastContent, token, state, content, isComment)
{
if (!token) {
if (content === ";")
return 1;
if (content === ",") { // "a,b,c,...,z{}" rule list at top level or in @media top level and only if the line length will be large.
if (content === ";")
return 1;
if (content === ",") { // "a,b,c,...,z{}" rule list at top level or in @media top level and only if the line length will be large.
// In order insert newlines in selector lists we need keep track of the length of the current line.
// This isn't exact line length, only the builder knows that, but it is good enough to get an idea.
// If we are at a top level, keep track of the current line length, otherwise we reset to 0.
// In order insert newlines in selector lists we need keep track of the length of the current line.
// This isn't exact line length, only the builder knows that, but it is good enough to get an idea.
// If we are at a top level, keep track of the current line length, otherwise we reset to 0.