diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-11-05 07:21:01 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-11-05 07:21:01 +0000 |
commit | abe164b5b7d160faacfd0c626e28750e2bf31eef (patch) | |
tree | c4a6e4d85b36b11547ae335c113ee0d8021381f9 /chars.in | |
parent | fa112dd09499ac23faf67420007920ff5b1a983e (diff) | |
download | mandoc-abe164b5b7d160faacfd0c626e28750e2bf31eef.tar.gz mandoc-abe164b5b7d160faacfd0c626e28750e2bf31eef.tar.zst mandoc-abe164b5b7d160faacfd0c626e28750e2bf31eef.zip |
Added functionality of -Tascii non-breaking `\~' space.
Diffstat (limited to 'chars.in')
-rw-r--r-- | chars.in | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: chars.in,v 1.18 2009/09/24 11:55:28 kristaps Exp $ */ +/* $Id: chars.in,v 1.19 2009/11/05 07:21:02 kristaps Exp $ */ /* * Copyright (c) 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -30,11 +30,16 @@ * XXX - update LINES_MAX if adding more! */ +/* Non-breaking, non-collapsing space uses unit separator. */ +static const char ascii_nbrsp[2] = { 31, 0 }; + +CHAR_TBL_START + /* Spacing. */ CHAR("c", 1, "", 0, "", 0) CHAR("0", 1, " ", 1, " ", 7) CHAR(" ", 1, " ", 1, " ", 7) -CHAR("~", 1, " ", 1, " ", 6) +CHAR("~", 1, ascii_nbrsp, 1, " ", 6) CHAR("%", 1, "", 0, "", 0) CHAR("&", 1, "", 0, "", 0) CHAR("^", 1, "", 0, "", 0) @@ -416,3 +421,5 @@ CHAR("%0", 2, "%o", 2, "‰", 7) CHAR("fm", 2, "\'", 1, "′", 7) CHAR("sd", 2, "\"", 1, "″", 7) CHAR("mc", 2, "mu", 2, "µ", 6) + +CHAR_TBL_END |