private void AddingChild(StringBuilder stringBuilder, XInline child) { var lastCharacter = stringBuilder.Length > 0 ? stringBuilder[stringBuilder.Length - 1] : '\0'; if (child is XLineBreak) { return; } if (FormattingCalculator.RequiresSpace(lastCharacter, (child.Text ?? string.Empty).FirstOrDefault())) { stringBuilder.Append(" "); } }
protected bool Equals(XInline other) { return(Equals(Text, other.Text)); }
private void AddChild(StringBuilder stringBuilder, XInline child, bool formatted) { stringBuilder.Append(formatted ? child.ToString() : child.ToPlainString()); }
public void AddChild(XInline child) { children.Add(child); }
protected bool Equals(XInline other) { return Equals(Text, other.Text); }
private void AddingChild(StringBuilder stringBuilder, XInline child) { var lastCharacter = stringBuilder.Length > 0 ? stringBuilder[stringBuilder.Length - 1] : '\0'; if (child is XLineBreak) return; if (FormattingCalculator.RequiresSpace(lastCharacter, (child.Text ?? string.Empty).FirstOrDefault())) stringBuilder.Append(" "); }