From d60df528affe8e1fa6467b843167b9697cb433ad 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 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'html.c') 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 * Copyright (c) 2011 Ingo Schwarze @@ -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 v1.2.3