metanorma-bipm 1.2.1 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 370d29ed386f2e5c7540d82e0dfcbcafc17a702234c84ee83e6a137da5d87208
4
- data.tar.gz: e3caae791429708ca02269e0a0c3a61ff79e2a44f71900454f173e4a0a6e0478
3
+ metadata.gz: 2f9652ed0417da543c2ac78f8b3c1f07523d3263955edd4ebb56ed7d6ad62acd
4
+ data.tar.gz: 253e9177d7beb3a0607b486ea0be4a44551cb3b22804a2211f10906d2ddc063d
5
5
  SHA512:
6
- metadata.gz: 2b36089016db9ee6494a4ccbe5acf9f01dbc4e7b20846e40f283304752bac759a810198a1756ec7c8bda70901f3f23615a7808f14c8a314450848c15e0a8ef4d
7
- data.tar.gz: f57d70b623e8f5a4963d395f510457f423eca6ade6ff6d90993857b5913226ddb3b1a2230487d9707d570b516b5dbc35cba8897de331d3462cfcb4533bb9097e
6
+ metadata.gz: c070212a333befb8e336548e30f914d2f8197bdda5691735fb51d0d589190dd3ea761f05de0b6acd809f3b31f7809e84232bf577238a400fa6e2d5a6c4b7a44b
7
+ data.tar.gz: 3803393ec0101d70da575bfafa9af9a2aa3a5d56deea989561fd9d2f77d51b92cce0293f0cd49bf1863f347063438f9508efcf72e4e16a230b3b4a2676428672
@@ -9849,12 +9849,15 @@
9849
9849
  <xsl:param name="default">left</xsl:param>
9850
9850
  <xsl:attribute name="text-align">
9851
9851
  <xsl:choose>
9852
- <xsl:when test="@align"><xsl:value-of select="@align"/></xsl:when>
9852
+ <xsl:when test="@align and not(@align = 'indent')"><xsl:value-of select="@align"/></xsl:when>
9853
9853
  <xsl:when test="ancestor::*[local-name() = 'td']/@align"><xsl:value-of select="ancestor::*[local-name() = 'td']/@align"/></xsl:when>
9854
9854
  <xsl:when test="ancestor::*[local-name() = 'th']/@align"><xsl:value-of select="ancestor::*[local-name() = 'th']/@align"/></xsl:when>
9855
9855
  <xsl:otherwise><xsl:value-of select="$default"/></xsl:otherwise>
9856
9856
  </xsl:choose>
9857
9857
  </xsl:attribute>
9858
+ <xsl:if test="@align = 'indent'">
9859
+ <xsl:attribute name="margin-left">7mm</xsl:attribute>
9860
+ </xsl:if>
9858
9861
  </xsl:template><xsl:template name="number-to-words">
9859
9862
  <xsl:param name="number"/>
9860
9863
  <xsl:param name="first"/>
@@ -9849,12 +9849,15 @@
9849
9849
  <xsl:param name="default">left</xsl:param>
9850
9850
  <xsl:attribute name="text-align">
9851
9851
  <xsl:choose>
9852
- <xsl:when test="@align"><xsl:value-of select="@align"/></xsl:when>
9852
+ <xsl:when test="@align and not(@align = 'indent')"><xsl:value-of select="@align"/></xsl:when>
9853
9853
  <xsl:when test="ancestor::*[local-name() = 'td']/@align"><xsl:value-of select="ancestor::*[local-name() = 'td']/@align"/></xsl:when>
9854
9854
  <xsl:when test="ancestor::*[local-name() = 'th']/@align"><xsl:value-of select="ancestor::*[local-name() = 'th']/@align"/></xsl:when>
9855
9855
  <xsl:otherwise><xsl:value-of select="$default"/></xsl:otherwise>
9856
9856
  </xsl:choose>
9857
9857
  </xsl:attribute>
9858
+ <xsl:if test="@align = 'indent'">
9859
+ <xsl:attribute name="margin-left">7mm</xsl:attribute>
9860
+ </xsl:if>
9858
9861
  </xsl:template><xsl:template name="number-to-words">
9859
9862
  <xsl:param name="number"/>
9860
9863
  <xsl:param name="first"/>
@@ -9849,12 +9849,15 @@
9849
9849
  <xsl:param name="default">left</xsl:param>
9850
9850
  <xsl:attribute name="text-align">
9851
9851
  <xsl:choose>
9852
- <xsl:when test="@align"><xsl:value-of select="@align"/></xsl:when>
9852
+ <xsl:when test="@align and not(@align = 'indent')"><xsl:value-of select="@align"/></xsl:when>
9853
9853
  <xsl:when test="ancestor::*[local-name() = 'td']/@align"><xsl:value-of select="ancestor::*[local-name() = 'td']/@align"/></xsl:when>
9854
9854
  <xsl:when test="ancestor::*[local-name() = 'th']/@align"><xsl:value-of select="ancestor::*[local-name() = 'th']/@align"/></xsl:when>
9855
9855
  <xsl:otherwise><xsl:value-of select="$default"/></xsl:otherwise>
9856
9856
  </xsl:choose>
9857
9857
  </xsl:attribute>
9858
+ <xsl:if test="@align = 'indent'">
9859
+ <xsl:attribute name="margin-left">7mm</xsl:attribute>
9860
+ </xsl:if>
9858
9861
  </xsl:template><xsl:template name="number-to-words">
9859
9862
  <xsl:param name="number"/>
9860
9863
  <xsl:param name="first"/>
@@ -9849,12 +9849,15 @@
9849
9849
  <xsl:param name="default">left</xsl:param>
9850
9850
  <xsl:attribute name="text-align">
9851
9851
  <xsl:choose>
9852
- <xsl:when test="@align"><xsl:value-of select="@align"/></xsl:when>
9852
+ <xsl:when test="@align and not(@align = 'indent')"><xsl:value-of select="@align"/></xsl:when>
9853
9853
  <xsl:when test="ancestor::*[local-name() = 'td']/@align"><xsl:value-of select="ancestor::*[local-name() = 'td']/@align"/></xsl:when>
9854
9854
  <xsl:when test="ancestor::*[local-name() = 'th']/@align"><xsl:value-of select="ancestor::*[local-name() = 'th']/@align"/></xsl:when>
9855
9855
  <xsl:otherwise><xsl:value-of select="$default"/></xsl:otherwise>
9856
9856
  </xsl:choose>
9857
9857
  </xsl:attribute>
9858
+ <xsl:if test="@align = 'indent'">
9859
+ <xsl:attribute name="margin-left">7mm</xsl:attribute>
9860
+ </xsl:if>
9858
9861
  </xsl:template><xsl:template name="number-to-words">
9859
9862
  <xsl:param name="number"/>
9860
9863
  <xsl:param name="first"/>
@@ -7291,12 +7291,15 @@
7291
7291
  <xsl:param name="default">left</xsl:param>
7292
7292
  <xsl:attribute name="text-align">
7293
7293
  <xsl:choose>
7294
- <xsl:when test="@align"><xsl:value-of select="@align"/></xsl:when>
7294
+ <xsl:when test="@align and not(@align = 'indent')"><xsl:value-of select="@align"/></xsl:when>
7295
7295
  <xsl:when test="ancestor::*[local-name() = 'td']/@align"><xsl:value-of select="ancestor::*[local-name() = 'td']/@align"/></xsl:when>
7296
7296
  <xsl:when test="ancestor::*[local-name() = 'th']/@align"><xsl:value-of select="ancestor::*[local-name() = 'th']/@align"/></xsl:when>
7297
7297
  <xsl:otherwise><xsl:value-of select="$default"/></xsl:otherwise>
7298
7298
  </xsl:choose>
7299
7299
  </xsl:attribute>
7300
+ <xsl:if test="@align = 'indent'">
7301
+ <xsl:attribute name="margin-left">7mm</xsl:attribute>
7302
+ </xsl:if>
7300
7303
  </xsl:template><xsl:template name="number-to-words">
7301
7304
  <xsl:param name="number"/>
7302
7305
  <xsl:param name="first"/>
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module BIPM
3
- VERSION = "1.2.1".freeze
3
+ VERSION = "1.2.2".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-bipm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-11-04 00:00:00.000000000 Z
11
+ date: 2021-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-generic