Lines Matching refs:tag

129 static	void	 print_ctag(struct html *, struct tag *);
143 h->tag = NULL; in html_alloc()
164 struct tag *tag; in html_reset_internal() local
168 while ((tag = h->tag) != NULL) { in html_reset_internal()
169 h->tag = tag->next; in html_reset_internal()
170 free(tag); in html_reset_internal()
197 struct tag *t; in print_gen_head()
297 struct tag *this, *next; in html_close_paragraph()
300 this = h->tag; in html_close_paragraph()
303 flags = htmltags[this->tag].flags; in html_close_paragraph()
319 struct tag *t; in html_fillmode()
322 for (t = h->tag; t != NULL; t = t->next) in html_fillmode()
323 if (t->tag == TAG_PRE) in html_fillmode()
370 if (n->tag != NULL) in html_make_id()
371 buf = mandoc_strdup(n->tag); in html_make_id()
627 struct tag *
628 print_otag(struct html *h, enum htmltag tag, const char *fmt, ...) in print_otag() argument
631 struct tag *t; in print_otag()
636 tflags = htmltags[tag].flags; in print_otag()
641 for (t = h->tag; t != NULL; t = t->next) { in print_otag()
644 assert((htmltags[t->tag].flags & HTML_TOPHRASE) == 0); in print_otag()
654 } else if (tflags & HTML_TOPHRASE && h->tag->tag == TAG_SECTION) in print_otag()
660 t = mandoc_malloc(sizeof(struct tag)); in print_otag()
661 t->tag = tag; in print_otag()
662 t->next = h->tag; in print_otag()
665 h->tag = t; in print_otag()
691 print_word(h, htmltags[tag].name); in print_otag()
774 if (htmltags[tag].flags & HTML_NOSTACK) in print_otag()
798 struct tag *
803 struct tag *ret, *t; in print_otag_id()
836 print_ctag(struct html *h, struct tag *tag) in print_ctag() argument
840 if (tag->closed == 0) { in print_ctag()
841 tag->closed = 1; in print_ctag()
842 if (tag == h->metaf) in print_ctag()
844 if (tag == h->tblt) in print_ctag()
847 tflags = htmltags[tag->tag].flags; in print_ctag()
857 print_word(h, htmltags[tag->tag].name); in print_ctag()
862 if (tag->refcnt == 0) { in print_ctag()
863 h->tag = tag->next; in print_ctag()
864 free(tag); in print_ctag()
910 struct tag *t; in print_tagged_text()
918 if (h->tag->tag == TAG_SECTION) in print_tagged_text()
964 print_tagq(struct html *h, const struct tag *until) in print_tagq()
966 struct tag *this, *next; in print_tagq()
968 for (this = h->tag; this != NULL; this = next) { in print_tagq()
980 print_stagq(struct html *h, const struct tag *suntil) in print_stagq()
982 struct tag *this, *next; in print_stagq()
984 for (this = h->tag; this != NULL; this = next) { in print_stagq()
987 (this->tag == TAG_P || this->tag == TAG_PRE))) in print_stagq()