Mercurial > hg > ooxml
changeset 43:5469a32795da
fix off-by-one error
author | Henry S. Thompson <ht@markup.co.uk> |
---|---|
date | Sun, 07 May 2017 11:55:50 +0100 |
parents | 6f448ac67778 |
children | 5b2333e59d91 |
files | n2a.xsl |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/n2a.xsl Tue May 02 10:20:59 2017 +0100 +++ b/n2a.xsl Sun May 07 11:55:50 2017 +0100 @@ -8,7 +8,7 @@ <xsl:param name="n" as="xs:integer"/> <xsl:sequence select="let $least := $codeBase+(($n - 1) mod 26)+1 return if ($n < 27) then $least - else (e:n2aa($n idiv 26),$least)"/> + else (e:n2aa(($n - 1) idiv 26),$least)"/> </xsl:function> <xsl:function name="e:n2a" as="xs:string">