diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-07-03 22:57:32 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-07-03 22:57:32 +0000 |
commit | 66611c2a2aece81705e614fe7d87b9abe3495b7c (patch) | |
tree | 022fd7508f9d07329c1f22fa5c453d33bdfd6419 /man_html.c | |
parent | e2e4968fd6265889f73d71e8f0f5bb3cc354297b (diff) | |
download | mandoc-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.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); |