]> git.cameronkatri.com Git - mandoc.git/blobdiff - term.c
Added functionality of -Tascii non-breaking `\~' space.
[mandoc.git] / term.c
diff --git a/term.c b/term.c
index fd30d9906549596b84c0d9cb94b04242eb4279d2..7afa1019fe94455115e396c4618a114415cf073f 100644 (file)
--- a/term.c
+++ b/term.c
@@ -1,4 +1,4 @@
-/*     $Id: term.c,v 1.120 2009/10/31 06:10:58 kristaps Exp $ */
+/*     $Id: term.c,v 1.121 2009/11/05 07:21:02 kristaps Exp $ */
 /*
  * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
  *
@@ -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;
        }