Lines Matching defs:tag
406 /* Save current tag. */
408 push_tag (char *tag, char *attribs)
412 newstack->tag = tag;
418 /* Get last tag. */
426 line_error (_("[unexpected] no html tag to pop"));
436 /* Check if tag is an empty or a whitespace only element.
439 rollback_empty_tag (char *tag)
442 int taglen = strlen (tag);
451 /* Find the end of the previous tag. */
455 /* Save stuff between tag's end to output_paragraph's end. */
468 /* Find the start of the previous tag. */
472 /* Check to see if this is the tag. */
473 if (strncmp ((char *) output_paragraph + check_position, tag, taglen) == 0
498 insert_html_tag_with_attribute (int start_or_end, char *tag, char *format, ...)
500 insert_html_tag_with_attribute (start_or_end, tag, format, va_alist)
502 char *tag;
518 old_tag = htmlstack->tag;
541 && STREQ (htmlstack->tag, tag)
542 && !(STREQ (tag, "span") && STREQ (old_attribs, formatted_attribs)))
546 push_tag (tag, formatted_attribs);
559 if (*tag)
562 add_word_args (format ? "<%s %s>" : "<%s>", tag, formatted_attribs);
563 else if (!rollback_empty_tag (tag))
564 /* Insert close tag only if we didn't rollback,
565 in which case the opening tag is removed. */
566 add_word_args ("</%s>", tag);
577 insert_html_tag (int start_or_end, char *tag)
579 insert_html_tag_with_attribute (start_or_end, tag, NULL);