summaryrefslogtreecommitdiffstats
path: root/mdocterm.c
diff options
context:
space:
mode:
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);