summaryrefslogtreecommitdiffstatshomepage
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
commit9ccb94640e7d013c2433b151dd1bafdf57538ecb (patch)
tree9a592dc5c8db75a54cbd13fc139f867b0cba09ca /html.c
parenta067fc75956a25725c91bbfc0130ab038867c888 (diff)
downloadmandoc-9ccb94640e7d013c2433b151dd1bafdf57538ecb.tar.gz
mandoc-9ccb94640e7d013c2433b151dd1bafdf57538ecb.tar.zst
mandoc-9ccb94640e7d013c2433b151dd1bafdf57538ecb.zip
\f escapes appear to work properly for -Thtml -man. Needs more testing.
Diffstat (limited to 'html.c')
-rw-r--r--html.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/html.c b/html.c
index 33345731..ddc8c5a4 100644
--- a/html.c
+++ b/html.c
@@ -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 <kristaps@kth.se>
*
@@ -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);