From de205044ce0e8b0414ab85bbd5e600391fe34e98 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Sun, 15 May 2011 15:47:46 +0000 Subject: Fix missing support for \N'n' when calculating string widths in -Tascii (oops). Do the same for -Thtml (oops^2). --- html.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'html.c') 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; -- cgit