summaryrefslogtreecommitdiffstats
path: root/mdocterm.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-02-28 20:13:06 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-02-28 20:13:06 +0000
commit253af51ade9f0c1525a5f7f3ac3c074524a1b7c3 (patch)
treef83d14970fe29b701b6847f69d11c28cfa4db1a6 /mdocterm.c
parent2df248c6ce60c428883b2fa11fdde63dd091d8a4 (diff)
downloadmandoc-253af51ade9f0c1525a5f7f3ac3c074524a1b7c3.tar.gz
More fixes (hard-escapes, etc.).
Diffstat (limited to 'mdocterm.c')
-rw-r--r--mdocterm.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/mdocterm.c b/mdocterm.c
index ca695ab8..0d993729 100644
--- a/mdocterm.c
+++ b/mdocterm.c
@@ -554,7 +554,14 @@ word(struct termp *p, const char *word)
if ( ! xisspace(word[i])) {
j++;
continue;
+ }
+
+ /* Escaped spaces don't delimit... */
+ if (i > 0 && xisspace(word[i]) && '\\' == word[i - 1]) {
+ j++;
+ continue;
}
+
if (0 == j)
continue;
assert(i >= j);