Lines Matching refs:tag
408 /* Save current tag. */
410 push_tag (char *tag, char *attribs)
414 newstack->tag = tag;
420 /* Get last tag. */
428 line_error (_("[unexpected] no html tag to pop"));
438 /* Check if tag is an empty or a whitespace only element.
441 rollback_empty_tag (char *tag)
444 int taglen = strlen (tag);
453 /* Find the end of the previous tag. */
457 /* Save stuff between tag's end to output_paragraph's end. */
470 /* Find the start of the previous tag. */
474 /* Check to see if this is the tag. */
475 if (strncmp ((char *) output_paragraph + check_position, tag, taglen) == 0
500 insert_html_tag_with_attribute (int start_or_end, char *tag, char *format, ...)
502 insert_html_tag_with_attribute (start_or_end, tag, format, va_alist)
504 char *tag;
520 old_tag = htmlstack->tag;
543 && STREQ (htmlstack->tag, tag)
544 && !(STREQ (tag, "span") && STREQ (old_attribs, formatted_attribs)))
548 push_tag (tag, formatted_attribs);
561 if (*tag)
564 add_word_args (format ? "<%s %s>" : "<%s>", tag, formatted_attribs);
565 else if (!rollback_empty_tag (tag))
566 /* Insert close tag only if we didn't rollback,
567 in which case the opening tag is removed. */
568 add_word_args ("</%s>", tag);
579 insert_html_tag (int start_or_end, char *tag)
581 insert_html_tag_with_attribute (start_or_end, tag, NULL);