public void Write(String value) { if (String.IsNullOrEmpty(value)) { return; } _fieldBuilder.Append(value); }
public override bool CheckOnCloseMarker(char symbol, bool isLastSymbol = false) { if (symbol.ToString() == CloseMarker) { return(true); } if (!isLastSymbol) { return(false); } FieldBuilder.Append(symbol); return(true); }
public override bool CheckOnCloseMarker(char symbol, bool isLastSymbol = false) { if (newItemExpected && symbol != OpenMarker[0] && symbol != ' ') { textContinue = true; return(true); } newItemExpected = newItemExpected && (symbol == OpenMarker[0] || symbol == ' '); if (!isLastSymbol) { return(false); } textContinue = false; if (symbol != '\n') { FieldBuilder.Append(symbol); } ProcessSymbol('\n'); return(true); }
public override string GetCompletedField() { FieldBuilder.Append(CloseMarker); return(HtmlWrapper.WrapToHtmlTag(base.GetCompletedField(), $"<h{Size}>", CssClass)); }