=================================================================== RCS file: /cvs/mandoc/html.c,v retrieving revision 1.88 retrieving revision 1.89 diff -u -p -r1.88 -r1.89 --- mandoc/html.c 2009/11/14 19:23:58 1.88 +++ mandoc/html.c 2009/11/15 06:45:31 1.89 @@ -1,4 +1,4 @@ -/* $Id: html.c,v 1.88 2009/11/14 19:23:58 kristaps Exp $ */ +/* $Id: html.c,v 1.89 2009/11/15 06:45:31 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -247,7 +247,7 @@ print_metaf(struct html *h, enum roffdeco deco) assert(h->metaf == h->tags.head); print_tagq(h, h->metaf); } - + PAIR_CLASS_INIT(&tag, class); h->metaf = print_otag(h, TAG_SPAN, 1, &tag); } @@ -432,6 +432,8 @@ print_tagq(struct html *h, const struct tag *until) struct tag *tag; while ((tag = h->tags.head) != NULL) { + if (tag == h->metaf) + h->metaf = NULL; print_ctag(h, tag->tag); h->tags.head = tag->next; free(tag); @@ -449,6 +451,8 @@ print_stagq(struct html *h, const struct tag *suntil) while ((tag = h->tags.head) != NULL) { if (suntil && tag == suntil) return; + if (tag == h->metaf) + h->metaf = NULL; print_ctag(h, tag->tag); h->tags.head = tag->next; free(tag);