Lines Matching refs:tag

125 static	void	 print_ctag(struct html *, struct tag *);
152 struct tag *tag;
157 while ((tag = h->tags.head) != NULL) {
158 h->tags.head = tag->next;
159 free(tag);
168 struct htmlpair tag[4];
169 struct tag *t;
171 tag[0].key = ATTR_CHARSET;
172 tag[0].val = "utf-8";
173 print_otag(h, TAG_META, 1, tag);
188 tag[0].key = ATTR_REL;
189 tag[0].val = "stylesheet";
190 tag[1].key = ATTR_HREF;
191 tag[1].val = h->style;
192 tag[2].key = ATTR_TYPE;
193 tag[2].val = "text/css";
194 tag[3].key = ATTR_MEDIA;
195 tag[3].val = "all";
196 print_otag(h, TAG_LINK, 4, tag);
435 struct tag *
436 print_otag(struct html *h, enum htmltag tag,
440 struct tag *t;
444 if ( ! (HTML_NOSTACK & htmltags[tag].flags)) {
445 t = mandoc_malloc(sizeof(struct tag));
446 t->tag = tag;
453 if ( ! (HTML_CLRLINE & htmltags[tag].flags)) {
468 /* Print out the tag name and attributes. */
470 printf("<%s", htmltags[tag].name);
476 if (HTML_AUTOCLOSE & htmltags[tag].flags)
483 if ((HTML_AUTOCLOSE | HTML_CLRLINE) & htmltags[tag].flags)
490 print_ctag(struct html *h, struct tag *tag)
497 if (tag == h->metaf)
499 if (tag == h->tblt)
502 printf("</%s>", htmltags[tag->tag].name);
503 if (HTML_CLRLINE & htmltags[tag->tag].flags) {
508 h->tags.head = tag->next;
509 free(tag);
566 print_tagq(struct html *h, const struct tag *until)
568 struct tag *tag;
570 while ((tag = h->tags.head) != NULL) {
571 print_ctag(h, tag);
572 if (until && tag == until)
578 print_stagq(struct html *h, const struct tag *suntil)
580 struct tag *tag;
582 while ((tag = h->tags.head) != NULL) {
583 if (suntil && tag == suntil)
585 print_ctag(h, tag);
592 struct tag *t;
593 struct htmlpair tag;
595 PAIR_CLASS_INIT(&tag, "spacer");
596 t = print_otag(h, TAG_DIV, 1, &tag);