diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2010-10-01 21:51:13 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2010-10-01 21:51:13 +0000 |
commit | 5e7fb1db20be568b2fe3b2f582beeb683c0812eb (patch) | |
tree | e60b646fbe07b7f6e7a28697bf799d224da66b76 /term.c | |
parent | c3ccf2f42ee5664ddacf557bae68288b6dea8c44 (diff) | |
download | mandoc-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |