summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-07-18 18:04:25 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-07-18 18:04:25 +0000
commit62a6f18a684aea51ece6b91ad1ce0a6c90149d87 (patch)
tree60c196be451507055453dad736ffd5498cc7b178
parent8ee4ce8a2dfd617e29674aa4e0718c32e1ad02c5 (diff)
downloadmandoc-62a6f18a684aea51ece6b91ad1ce0a6c90149d87.tar.gz
mandoc-62a6f18a684aea51ece6b91ad1ce0a6c90149d87.tar.zst
mandoc-62a6f18a684aea51ece6b91ad1ce0a6c90149d87.zip
Make "\ " produce non-breaking space.
Noted by Theo de Raadt. Ok schwarze@.
-rw-r--r--TODO5
-rw-r--r--chars.in4
2 files changed, 4 insertions, 5 deletions
diff --git a/TODO b/TODO
index 0fba62e3..7f8f512f 100644
--- a/TODO
+++ b/TODO
@@ -1,6 +1,6 @@
************************************************************************
* Official mandoc TODO. May not be quite up to date.
-* $Id: TODO,v 1.28 2010/07/18 16:42:03 schwarze Exp $
+* $Id: TODO,v 1.29 2010/07/18 18:04:25 kristaps Exp $
************************************************************************
************************************************************************
@@ -80,8 +80,7 @@
************************************************************************
- perl(1) SYNOPSIS looks bad; reported by deraadt@
- 1) "\ " is non-breaking
- 2) man(7) seems to need SYNOPSIS .Nm blocks, too
+ 1) man(7) seems to need SYNOPSIS .Nm blocks, too
- empty phrases in .Bl column produce too few blanks
try e.g. .Bl -column It Ta Ta
diff --git a/chars.in b/chars.in
index aec9295f..d85b6a97 100644
--- a/chars.in
+++ b/chars.in
@@ -1,4 +1,4 @@
-/* $Id: chars.in,v 1.27 2010/07/17 09:21:39 kristaps Exp $ */
+/* $Id: chars.in,v 1.28 2010/07/18 18:04:25 kristaps Exp $ */
/*
* Copyright (c) 2009 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -38,7 +38,7 @@ CHAR_TBL_START
/* Spacing. */
CHAR("c", "", 0, -1)
CHAR("0", " ", 1, 8194)
-CHAR(" ", " ", 1, 8194)
+CHAR(" ", ascii_nbrsp, 1, 160)
CHAR("~", ascii_nbrsp, 1, 160)
CHAR("%", "", 0, -1)
CHAR("&", "", 0, -1)