summaryrefslogtreecommitdiffstats
path: root/term.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-11-05 07:21:01 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-11-05 07:21:01 +0000
commit0c78894c64ebea8f4ab0917e43506b712921a05d (patch)
treeb7bb07cd90c4bde5dc23981dfc32d3c033c55929 /term.c
parentf9109fa61e7b814ab140124e035d7e7f813e0995 (diff)
downloadmandoc-0c78894c64ebea8f4ab0917e43506b712921a05d.tar.gz
Added functionality of -Tascii non-breaking `\~' space.
Diffstat (limited to 'term.c')
-rw-r--r--term.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/term.c b/term.c
index 5bd26040..de3f2326 100644
--- a/term.c
+++ b/term.c
@@ -229,7 +229,12 @@ term_flushln(struct termp *p)
for ( ; i < (int)p->col; i++) {
if (' ' == p->buf[i])
break;
- putchar(p->buf[i]);
+
+ /* The unit sep. is a non-breaking space. */
+ if (31 == p->buf[i])
+ putchar(' ');
+ else
+ putchar(p->buf[i]);
}
vis += vsz;
}