diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-02-28 20:13:06 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-02-28 20:13:06 +0000 |
commit | df65ac42a497f4acfc4cf57335efee9070d1c8a2 (patch) | |
tree | cbe09ad8bcffc2b5669f642a46e5cd7994c3bcb3 /mdocterm.c | |
parent | 04ec167793e3dfd1707ea22132ce12f5b7b45e85 (diff) | |
download | mandoc-df65ac42a497f4acfc4cf57335efee9070d1c8a2.tar.gz mandoc-df65ac42a497f4acfc4cf57335efee9070d1c8a2.tar.zst mandoc-df65ac42a497f4acfc4cf57335efee9070d1c8a2.zip |
More fixes (hard-escapes, etc.).
Diffstat (limited to 'mdocterm.c')
-rw-r--r-- | mdocterm.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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); |