summaryrefslogtreecommitdiff
path: root/usr.bin/mandoc
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2012-07-29 16:29:57 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2012-07-29 16:29:57 +0000
commit3bb8128838bc20238e6bfb71d38daa226169bd62 (patch)
treee8fdf5f1c8da96055531e29d4e86a6793b8d9ef5 /usr.bin/mandoc
parent538d857b3e0b062c99f6a494edfda97221806297 (diff)
Use "\\ " not "\\~" as the non-breaking space as historic nroff
doesn't support the latter. OK schwarze@
Diffstat (limited to 'usr.bin/mandoc')
-rw-r--r--usr.bin/mandoc/mdoc_man.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/usr.bin/mandoc/mdoc_man.c b/usr.bin/mandoc/mdoc_man.c
index 41f12fcec5d..df732024ec0 100644
--- a/usr.bin/mandoc/mdoc_man.c
+++ b/usr.bin/mandoc/mdoc_man.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_man.c,v 1.38 2012/07/16 10:45:28 schwarze Exp $ */
+/* $Id: mdoc_man.c,v 1.39 2012/07/29 16:29:56 millert Exp $ */
/*
* Copyright (c) 2011, 2012 Ingo Schwarze <schwarze@openbsd.org>
*
@@ -317,11 +317,9 @@ print_word(const char *s)
*/
if (MMAN_spc_force & outflags || '\0' == s[0] ||
NULL == strchr(".,:;)]?!", s[0]) || '\0' != s[1]) {
- if (MMAN_Bk & outflags) {
+ if (MMAN_Bk & outflags)
putchar('\\');
- putchar('~');
- } else
- putchar(' ');
+ putchar(' ');
if (TPremain)
TPremain--;
}
@@ -341,7 +339,7 @@ print_word(const char *s)
for ( ; *s; s++) {
switch (*s) {
case (ASCII_NBRSP):
- printf("\\~");
+ printf("\\ ");
break;
case (ASCII_HYPH):
putchar('-');
@@ -1415,7 +1413,7 @@ pre_ux(DECL_ARGS)
if (NULL == n->child)
return(0);
outflags &= ~MMAN_spc;
- print_word("\\~");
+ print_word("\\ ");
outflags &= ~MMAN_spc;
return(1);
}