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_term.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_term.c')
-rw-r--r-- | man_term.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: man_term.c,v 1.112 2011/06/29 15:38:09 kristaps Exp $ */ +/* $Id: man_term.c,v 1.113 2011/07/03 22:57:32 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010, 2011 Ingo Schwarze <schwarze@openbsd.org> @@ -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. */ |