Mercurial > hg > ooxml
changeset 9:5f2d691014ff
allow \ to start and use Unicode currency class Sc for currency format code detection
author | Henry S. Thompson <ht@markup.co.uk> |
---|---|
date | Sun, 02 Apr 2017 23:45:02 +0800 |
parents | 785187b9caef |
children | 01e80c7a9575 |
files | format.xsl |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/format.xsl Sun Apr 02 21:13:16 2017 +0800 +++ b/format.xsl Sun Apr 02 23:45:02 2017 +0800 @@ -11,7 +11,7 @@ <xsl:function name="e:currencyFormatP" as="xs:boolean"> <xsl:param name="format"/> <!-- Really need a unicode block check --> - <xsl:value-of select="matches($format,concat('^["',"'",'][£$¢-¥]'))"/> + <xsl:value-of select="matches($format,concat('^["',"'",'\\]\p{Sc}'))"/> </xsl:function> <xsl:template match="s:worksheet">