summaryrefslogtreecommitdiffstats
path: root/man_term.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
commit15ae9721617b86af0d3035bd1192a62ee7f8b9a9 (patch)
tree61a43b815fec68cd8e43f9ad41f50f02552c1016 /man_term.c
parent4e20fd8a92021a6d906876ce250654c04e8ef099 (diff)
downloadmandoc-15ae9721617b86af0d3035bd1192a62ee7f8b9a9.tar.gz
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_term.c')
-rw-r--r--man_term.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/man_term.c b/man_term.c
index 8ca5d312..9d39cc29 100644
--- a/man_term.c
+++ b/man_term.c
@@ -709,6 +709,7 @@ pre_SS(DECL_ARGS)
switch (n->type) {
case (MAN_BLOCK):
+ mt->fl &= ~MANT_LITERAL;
mt->lmargin = term_len(p, INDENT);
mt->offset = term_len(p, INDENT);
/* If following a prior empty `SS', no vspace. */
@@ -759,6 +760,7 @@ pre_SH(DECL_ARGS)
switch (n->type) {
case (MAN_BLOCK):
+ mt->fl &= ~MANT_LITERAL;
mt->lmargin = term_len(p, INDENT);
mt->offset = term_len(p, INDENT);
/* If following a prior empty `SH', no vspace. */