summaryrefslogtreecommitdiffstatshomepage
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
commit5134b2528e28222c6cfe6ab2b2977ea107397999 (patch)
tree7f5e62c6008e07831f58913277362fefe3f76add /term.c
parent9d6cd65d9c0228344fd1848a9f8c9343f5434599 (diff)
downloadmandoc-5134b2528e28222c6cfe6ab2b2977ea107397999.tar.gz
mandoc-5134b2528e28222c6cfe6ab2b2977ea107397999.tar.zst
mandoc-5134b2528e28222c6cfe6ab2b2977ea107397999.zip
Fixed `.Pf' handling.
System now supports all mdocml manual pages.
Diffstat (limited to 'term.c')
-rw-r--r--term.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/term.c b/term.c
index 5b7111dc..b9e4a936 100644
--- a/term.c
+++ b/term.c
@@ -1,4 +1,4 @@
-/* $Id: term.c,v 1.8 2009/02/22 15:50:45 kristaps Exp $ */
+/* $Id: term.c,v 1.9 2009/02/22 19:23:48 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -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++) {