aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mdoc_term.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-09-21 13:25:00 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-09-21 13:25:00 +0000
commit5eefcc0ad149d57654c561b480f1cbea05f7cbd6 (patch)
treec2988f69f7e0c03237e09ede94998fa2f2de8ba7 /mdoc_term.c
parent7ce71c9cfb7ce01719940fa18194a4b7c6834509 (diff)
downloadmandoc-5eefcc0ad149d57654c561b480f1cbea05f7cbd6.tar.gz
mandoc-5eefcc0ad149d57654c561b480f1cbea05f7cbd6.tar.zst
mandoc-5eefcc0ad149d57654c561b480f1cbea05f7cbd6.zip
Trailing whitespace is significant when determining the width of a tag
in mdoc(7) .Bl -tag and man(7) .TP, but not in man(7) .IP. Quirk reported by Jan Stary <hans at stare dot cz> on ports@.
Diffstat (limited to 'mdoc_term.c')
-rw-r--r--mdoc_term.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mdoc_term.c b/mdoc_term.c
index dabbabba..c61a13de 100644
--- a/mdoc_term.c
+++ b/mdoc_term.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_term.c,v 1.325 2015/09/14 12:57:47 schwarze Exp $ */
+/* $Id: mdoc_term.c,v 1.326 2015/09/21 13:25:00 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010, 2012-2015 Ingo Schwarze <schwarze@openbsd.org>
@@ -802,7 +802,7 @@ termp_it_pre(DECL_ARGS)
if (n->type != ROFFT_HEAD)
break;
- p->flags |= TERMP_NOBREAK | TERMP_BRIND;
+ p->flags |= TERMP_NOBREAK | TERMP_BRTRSP | TERMP_BRIND;
p->trailspace = 2;
if (NULL == n->next || NULL == n->next->child)
@@ -974,7 +974,7 @@ termp_it_post(DECL_ARGS)
* has munged them in the meanwhile.
*/
- p->flags &= ~(TERMP_NOBREAK | TERMP_BRIND |
+ p->flags &= ~(TERMP_NOBREAK | TERMP_BRTRSP | TERMP_BRIND |
TERMP_DANGLE | TERMP_HANG);
p->trailspace = 0;
}