summaryrefslogtreecommitdiffstatshomepage
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
commitdf65ac42a497f4acfc4cf57335efee9070d1c8a2 (patch)
treecbe09ad8bcffc2b5669f642a46e5cd7994c3bcb3 /mdocterm.c
parent04ec167793e3dfd1707ea22132ce12f5b7b45e85 (diff)
downloadmandoc-df65ac42a497f4acfc4cf57335efee9070d1c8a2.tar.gz
mandoc-df65ac42a497f4acfc4cf57335efee9070d1c8a2.tar.zst
mandoc-df65ac42a497f4acfc4cf57335efee9070d1c8a2.zip
More fixes (hard-escapes, etc.).
Diffstat (limited to 'mdocterm.c')
-rw-r--r--mdocterm.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/mdocterm.c b/mdocterm.c
index 398794ca..dd52e287 100644
--- a/mdocterm.c
+++ b/mdocterm.c
@@ -1,4 +1,4 @@
-/* $Id: mdocterm.c,v 1.19 2009/02/28 14:43:35 kristaps Exp $ */
+/* $Id: mdocterm.c,v 1.20 2009/02/28 20:13:06 kristaps Exp $ */
/*
* Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -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);