summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2015-10-12 00:14:41 +0000
committerschwarze <schwarze@openbsd.org>2015-10-12 00:14:41 +0000
commit5f57b3c91256e811ec40a5253cad6e3626622d25 (patch)
tree98c9fe2fc9f8b6d5fe7583c997e38f5963a5f706
parentTo make the code more readable, delete 283 /* FALLTHROUGH */ comments (diff)
downloadwireguard-openbsd-5f57b3c91256e811ec40a5253cad6e3626622d25.tar.xz
wireguard-openbsd-5f57b3c91256e811ec40a5253cad6e3626622d25.zip
Fix an obvious bug found during the /* FALLTHROUGH */ cleanup:
ASCII_NBRSP has to be rendered as "&nbsp;", not "-".
-rw-r--r--usr.bin/mandoc/html.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mandoc/html.c b/usr.bin/mandoc/html.c
index c03df788b1c..348b43f950e 100644
--- a/usr.bin/mandoc/html.c
+++ b/usr.bin/mandoc/html.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: html.c,v 1.59 2015/10/12 00:07:27 schwarze Exp $ */
+/* $OpenBSD: html.c,v 1.60 2015/10/12 00:14:41 schwarze Exp $ */
/*
* Copyright (c) 2008-2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2011-2015 Ingo Schwarze <schwarze@openbsd.org>
@@ -316,7 +316,7 @@ print_escape(char c)
printf("&quot;");
break;
case ASCII_NBRSP:
- putchar('-');
+ printf("&nbsp;");
break;
case ASCII_HYPH:
putchar('-');