summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc/mdoc_man.c
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2012-07-29 16:30:52 +0000
committermillert <millert@openbsd.org>2012-07-29 16:30:52 +0000
commit0e67873a353f379ec77673186444bfec80f453e7 (patch)
tree3c36cf6f23e7633f278e3c5b14362ccd81e07c1b /usr.bin/mandoc/mdoc_man.c
parentUse "\\ " not "\\~" as the non-breaking space as historic nroff (diff)
downloadwireguard-openbsd-0e67873a353f379ec77673186444bfec80f453e7.tar.xz
wireguard-openbsd-0e67873a353f379ec77673186444bfec80f453e7.zip
The '-' before the flags needs to be quoted to prevent nroff
from putting a line break between the '-' and the flag character. OK schwarze@
Diffstat (limited to 'usr.bin/mandoc/mdoc_man.c')
-rw-r--r--usr.bin/mandoc/mdoc_man.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mandoc/mdoc_man.c b/usr.bin/mandoc/mdoc_man.c
index df732024ec0..927d3aecd4a 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.39 2012/07/29 16:29:56 millert Exp $ */
+/* $Id: mdoc_man.c,v 1.40 2012/07/29 16:30:52 millert Exp $ */
/*
* Copyright (c) 2011, 2012 Ingo Schwarze <schwarze@openbsd.org>
*
@@ -971,7 +971,7 @@ pre_fl(DECL_ARGS)
{
font_push('B');
- print_word("-");
+ print_word("\\-");
outflags &= ~MMAN_spc;
return(1);
}