Esempio n. 1
0
        public void Write(String value)
        {
            if (String.IsNullOrEmpty(value))
            {
                return;
            }

            _fieldBuilder.Append(value);
        }
Esempio n. 2
0
 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);
        }
Esempio n. 4
0
 public override string GetCompletedField()
 {
     FieldBuilder.Append(CloseMarker);
     return(HtmlWrapper.WrapToHtmlTag(base.GetCompletedField(), $"<h{Size}>", CssClass));
 }