summaryrefslogtreecommitdiffstats
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
commitde205044ce0e8b0414ab85bbd5e600391fe34e98 (patch)
treec8ac103de72d9177c7408747b5fee48d708a206a /html.c
parent877bef0b9533150581c911aff80cfbb71c13de8e (diff)
downloadmandoc-de205044ce0e8b0414ab85bbd5e600391fe34e98.tar.gz
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.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/html.c b/html.c
index 199fd0c9..2b0d588a 100644
--- a/html.c
+++ b/html.c
@@ -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;