summaryrefslogtreecommitdiffstats
path: root/html.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-11-15 06:45:31 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-11-15 06:45:31 +0000
commitfa9a2e0d50be030033511e2b3b535729529d8696 (patch)
treea7a7bc544519f9ed318e89202e3f0569a19d5656 /html.c
parent4e79e898c4b9d864a069a79b6221f95ba6189c5d (diff)
downloadmandoc-fa9a2e0d50be030033511e2b3b535729529d8696.tar.gz
\f escapes appear to work properly for -Thtml -man. Needs more testing.
Diffstat (limited to 'html.c')
-rw-r--r--html.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/html.c b/html.c
index 741be084..e6409ffa 100644
--- a/html.c
+++ b/html.c
@@ -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);