public override string ToString(bool friendlyFormat, int indentation = 0) { return(_value.NewLineIndent(friendlyFormat, indentation) + "{" + _declarations.ToString(friendlyFormat, indentation) + "}".NewLineIndent(friendlyFormat, indentation)); }
public override string ToString(bool friendlyFormat, int indentation = 0) { var pseudo = string.IsNullOrEmpty(_selectorText) ? "" : ":" + _selectorText; var declarations = _declarations.ToString(friendlyFormat, indentation);//.TrimFirstLine(); return(("@page " + pseudo + "{").NewLineIndent(friendlyFormat, indentation) + declarations + "}".NewLineIndent(friendlyFormat, indentation)); }
public override string ToString(bool friendlyFormat, int indentation = 0) { return("@font-face{".NewLineIndent(friendlyFormat, indentation) + _declarations.ToString(friendlyFormat, indentation) + "}".NewLineIndent(friendlyFormat, indentation)); }