summaryrefslogtreecommitdiffstats
path: root/term.c
diff options
context:
space:
mode:
Diffstat (limited to 'term.c')
-rw-r--r--term.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/term.c b/term.c
index 2611d893..189b3e04 100644
--- a/term.c
+++ b/term.c
@@ -319,8 +319,11 @@ word(struct termp *p, const char *word)
len = strlen(word);
assert(len > 0);
- if (mdoc_isdelim(word))
- p->flags |= TERMP_NOSPACE;
+ if (mdoc_isdelim(word)) {
+ if ( ! (p->flags & TERMP_IGNDELIM))
+ p->flags |= TERMP_NOSPACE;
+ p->flags &= ~TERMP_IGNDELIM;
+ }
/* LINTED */
for (j = i = 0; i < len; i++) {