aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/html.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 /html.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 'html.c')
-rw-r--r--html.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/html.c b/html.c
index 8fb81c51..d6ac1a45 100644
--- a/html.c
+++ b/html.c
@@ -1,4 +1,4 @@
-/* $Id: html.c,v 1.138 2011/05/14 16:28:23 kristaps Exp $ */
+/* $Id: html.c,v 1.139 2011/05/15 15:47:46 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2011 Ingo Schwarze <schwarze@openbsd.org>
@@ -316,9 +316,10 @@ html_strlen(const char *cp)
switch (mandoc_escape(&cp, &seq, &ssz)) {
case (ESCAPE_ERROR):
return(sz);
+ case (ESCAPE_NUMBERED):
+ /* FALLTHROUGH */
case (ESCAPE_PREDEF):
- sz++;
- break;
+ /* FALLTHROUGH */
case (ESCAPE_SPECIAL):
sz++;
break;