aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/html.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-10-12 00:15:31 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-10-12 00:15:31 +0000
commitaaa5d1ca1a2cd9ee706ee668753bf556fd2fe433 (patch)
treeb12b073a338a786a66645da9fa05666f72edc324 /html.c
parent95ec7b52881820b8d6d9d9497b358d00a856ca28 (diff)
downloadmandoc-aaa5d1ca1a2cd9ee706ee668753bf556fd2fe433.tar.gz
mandoc-aaa5d1ca1a2cd9ee706ee668753bf556fd2fe433.tar.zst
mandoc-aaa5d1ca1a2cd9ee706ee668753bf556fd2fe433.zip
Fix an obvious bug found during the /* FALLTHROUGH */ cleanup:
ASCII_NBRSP has to be rendered as "&nbsp;", not "-".
Diffstat (limited to 'html.c')
-rw-r--r--html.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/html.c b/html.c
index 92dab93f..3a9a9dcc 100644
--- a/html.c
+++ b/html.c
@@ -1,4 +1,4 @@
-/* $Id: html.c,v 1.189 2015/10/12 00:08:15 schwarze Exp $ */
+/* $Id: html.c,v 1.190 2015/10/12 00:15:31 schwarze Exp $ */
/*
* Copyright (c) 2008-2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2011-2015 Ingo Schwarze <schwarze@openbsd.org>
@@ -318,7 +318,7 @@ print_escape(char c)
printf("&quot;");
break;
case ASCII_NBRSP:
- putchar('-');
+ printf("&nbsp;");
break;
case ASCII_HYPH:
putchar('-');