summaryrefslogtreecommitdiffstats
path: root/term.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-02-22 19:23:48 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-02-22 19:23:48 +0000
commitc9f801d9804d2a25f795302e5db93880df4f4d87 (patch)
tree7b147f5444b71e4c9386eeac77ed155e23156314 /term.c
parentf25db392c434984141c67fb983517a0dd28c4fe1 (diff)
downloadmandoc-c9f801d9804d2a25f795302e5db93880df4f4d87.tar.gz
Fixed `.Pf' handling.
System now supports all mdocml manual pages.
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++) {