aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/term.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2010-10-01 21:51:13 +0000
committerIngo Schwarze <schwarze@openbsd.org>2010-10-01 21:51:13 +0000
commit5e7fb1db20be568b2fe3b2f582beeb683c0812eb (patch)
treee60b646fbe07b7f6e7a28697bf799d224da66b76 /term.c
parentc3ccf2f42ee5664ddacf557bae68288b6dea8c44 (diff)
downloadmandoc-5e7fb1db20be568b2fe3b2f582beeb683c0812eb.tar.gz
mandoc-5e7fb1db20be568b2fe3b2f582beeb683c0812eb.tar.zst
mandoc-5e7fb1db20be568b2fe3b2f582beeb683c0812eb.zip
* need a space before .No even if it starts with a closing delimiter
* slightly simplify .Pf *_IGNDELIM code, and share part of it with .No * do not let opening delimiters fall out of the front of .Ns (from kristaps@) This fixes a few spacing issues in csh(1) and ksh(1). OK kristaps@
Diffstat (limited to 'term.c')
-rw-r--r--term.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/term.c b/term.c
index b609b0e8..e225ff62 100644
--- a/term.c
+++ b/term.c
@@ -1,4 +1,4 @@
-/* $Id: term.c,v 1.172 2010/09/23 20:26:00 schwarze Exp $ */
+/* $Id: term.c,v 1.173 2010/10/01 21:51:13 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010 Ingo Schwarze <schwarze@openbsd.org>
@@ -505,7 +505,7 @@ term_word(struct termp *p, const char *word)
else
p->flags |= TERMP_NOSPACE;
- p->flags &= ~TERMP_SENTENCE;
+ p->flags &= ~(TERMP_SENTENCE | TERMP_IGNDELIM);
while (*word) {
if ((ssz = strcspn(word, "\\")) > 0)