aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/chars.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-05-15 15:47:46 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-05-15 15:47:46 +0000
commitd60df528affe8e1fa6467b843167b9697cb433ad (patch)
treec4a7282578a910dc3ec1f4659e78e2922e58bff9 /chars.c
parentc462999d899acf87741657ed63dff7612559ce20 (diff)
downloadmandoc-d60df528affe8e1fa6467b843167b9697cb433ad.tar.gz
mandoc-d60df528affe8e1fa6467b843167b9697cb433ad.tar.zst
mandoc-d60df528affe8e1fa6467b843167b9697cb433ad.zip
Fix missing support for \N'n' when calculating string widths in -Tascii
(oops). Do the same for -Thtml (oops^2).
Diffstat (limited to 'chars.c')
-rw-r--r--chars.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/chars.c b/chars.c
index 6d9cf9d3..41b02e34 100644
--- a/chars.c
+++ b/chars.c
@@ -1,4 +1,4 @@
-/* $Id: chars.c,v 1.41 2011/05/14 17:54:42 kristaps Exp $ */
+/* $Id: chars.c,v 1.42 2011/05/15 15:47:46 kristaps Exp $ */
/*
* Copyright (c) 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2011 Ingo Schwarze <schwarze@openbsd.org>
@@ -141,6 +141,7 @@ mchars_res2cp(struct mchars *arg, const char *p, size_t sz)
* This can only be a printable character (i.e., alnum, punct, space) so
* prevent the character from ruining our state (backspace, newline, and
* so on).
+ * If the character is illegal, returns '\0'.
*/
char
mchars_num2char(const char *p, size_t sz)