public virtual void Visit(DocumentTitle title) { if (title != null) { _writer.WriteLine("<title>{0}</title>", title.Title); } else { _writer.WriteLine("<title>AsciiDocNet</title>"); } }
/// <summary> /// Visits the document title. /// </summary> /// <param name="title">The title.</param> public virtual void VisitDocumentTitle(DocumentTitle title) { if (title == null) { return; } VisitAttributeList(title.Attributes); if (!string.IsNullOrEmpty(title.Subtitle)) { _writer.WriteLine("= {0}: {1}", title.Title, title.Subtitle); } else { _writer.WriteLine("= {0}", title.Title); } _writer.WriteLine(); }
/// <summary> /// Visits the document title. /// </summary> /// <param name="title">The title.</param> public virtual void VisitDocumentTitle(DocumentTitle title) { VisitAttributable(title); }