aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/man_html.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-07-03 22:57:32 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-07-03 22:57:32 +0000
commit66611c2a2aece81705e614fe7d87b9abe3495b7c (patch)
tree022fd7508f9d07329c1f22fa5c453d33bdfd6419 /man_html.c
parente2e4968fd6265889f73d71e8f0f5bb3cc354297b (diff)
downloadmandoc-66611c2a2aece81705e614fe7d87b9abe3495b7c.tar.gz
mandoc-66611c2a2aece81705e614fe7d87b9abe3495b7c.tar.zst
mandoc-66611c2a2aece81705e614fe7d87b9abe3495b7c.zip
Fix a TODO noted by schwarze@, originally by Christian Weisgerber:
literal mode (`nf') is ended by SH (and, it turns out, SS as well). Noted the updated behaviour in man.7 as well.
Diffstat (limited to 'man_html.c')
-rw-r--r--man_html.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/man_html.c b/man_html.c
index f3aab2e2..fe79390c 100644
--- a/man_html.c
+++ b/man_html.c
@@ -1,4 +1,4 @@
-/* $Id: man_html.c,v 1.75 2011/06/29 15:38:09 kristaps Exp $ */
+/* $Id: man_html.c,v 1.76 2011/07/03 22:57:32 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -439,6 +439,7 @@ man_SH_pre(MAN_ARGS)
struct htmlpair tag;
if (MAN_BLOCK == n->type) {
+ mh->fl &= ~MANH_LITERAL;
PAIR_CLASS_INIT(&tag, "section");
print_otag(h, TAG_DIV, 1, &tag);
return(1);
@@ -520,6 +521,7 @@ man_SS_pre(MAN_ARGS)
struct htmlpair tag;
if (MAN_BLOCK == n->type) {
+ mh->fl &= ~MANH_LITERAL;
PAIR_CLASS_INIT(&tag, "subsection");
print_otag(h, TAG_DIV, 1, &tag);
return(1);