From e6d1719915ce2f572e471fea82358f606b7fd586 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Wed, 15 Sep 2010 14:36:16 +0000 Subject: Allow string lengths to account for escapes. Now all calls to calculate column width in -Tascii, -Tpdf, and -Tps will account for "more real" string lengths. Example: .Bl -tag -width \s[+123424]foo .It bar baz .El The size escape will be correctly tossed. .Bl -tag -width \(aqbar .It \(aqbar baz .El The \(aq will be correctly handled. --- TODO | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'TODO') diff --git a/TODO b/TODO index b28079fd..e0bd75b4 100644 --- a/TODO +++ b/TODO @@ -1,6 +1,6 @@ ************************************************************************ * Official mandoc TODO. -* $Id: TODO,v 1.46 2010/09/15 13:10:30 kristaps Exp $ +* $Id: TODO,v 1.47 2010/09/15 14:36:16 kristaps Exp $ ************************************************************************ ************************************************************************ @@ -172,11 +172,6 @@ Several areas can be cleaned up to make mandoc even faster. These are * structural issues ************************************************************************ -- rendering frontend code can calculate widths only for plain strings, - not for strings containing escape sequences. For example, this - hinders calculation of the indent required for .Nm \&[ in text(1). - comments from kristaps@ Wed, 21 Jul 2010 23:26:08 +0200 - - another example of the same problem: .Bl -tag -width "\eD{format}XX" -compact in OpenBSD ksh(1) gives the wrong width -- cgit v1.2.3-56-ge451