metanorma-iho 0.4.1 → 0.4.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: 29e8ce80d93fd50b5eadc73e9cb2d59757f2baacf223ef7dd9cf744e05e07f95
4
- data.tar.gz: 5fa92520fc73f5f905d557f367c5e78026b2f3c7892ffc1499a294f62d08b5b8
3
+ metadata.gz: af4e8cb7a25640917f4cabfe9c4a7c0b69c75ce7e75f5398dcab4955fc2a2c5c
4
+ data.tar.gz: 4fcd58bad2e1d8772296db57468243f3238a64d779181be87c97f4d8b3215a3b
5
5
  SHA512:
6
- metadata.gz: 3016aa5d8b8f8ce51e0bdd17afae3bcb4ef3388992b40bc63d57582470797d60722555f03317762af1d7483dae05cdd53182e49e7fa4deed213489d11f552b1b
7
- data.tar.gz: 754eb34dcca5229486be2f2eb17b6ffaf693299d741f8380a24164b1811abefb2580adaf74198adeb28e8a4b0fc2ce1bf179b5c60892d872997855d9c4a789b1
6
+ metadata.gz: f06a1aca9d0dae8f905f0c9b0234a641a8ba8109be2507296be9f9de75388537b36a66f7ec6737038a371f66e6beb84333c0effc3478c205ca5196059b560cae
7
+ data.tar.gz: 4d7dfb29637ecf66aec36f7a7606b0ef302b58b78a7e728e002c170c825e9155b516df6f61f4ba6950935a7581ca2b5483e182d881b4b3f1a128d551cfc06bf3
@@ -6196,12 +6196,15 @@
6196
6196
  <xsl:param name="default">left</xsl:param>
6197
6197
  <xsl:attribute name="text-align">
6198
6198
  <xsl:choose>
6199
- <xsl:when test="@align"><xsl:value-of select="@align"/></xsl:when>
6199
+ <xsl:when test="@align and not(@align = 'indent')"><xsl:value-of select="@align"/></xsl:when>
6200
6200
  <xsl:when test="ancestor::*[local-name() = 'td']/@align"><xsl:value-of select="ancestor::*[local-name() = 'td']/@align"/></xsl:when>
6201
6201
  <xsl:when test="ancestor::*[local-name() = 'th']/@align"><xsl:value-of select="ancestor::*[local-name() = 'th']/@align"/></xsl:when>
6202
6202
  <xsl:otherwise><xsl:value-of select="$default"/></xsl:otherwise>
6203
6203
  </xsl:choose>
6204
6204
  </xsl:attribute>
6205
+ <xsl:if test="@align = 'indent'">
6206
+ <xsl:attribute name="margin-left">7mm</xsl:attribute>
6207
+ </xsl:if>
6205
6208
  </xsl:template><xsl:template name="number-to-words">
6206
6209
  <xsl:param name="number"/>
6207
6210
  <xsl:param name="first"/>
@@ -6196,12 +6196,15 @@
6196
6196
  <xsl:param name="default">left</xsl:param>
6197
6197
  <xsl:attribute name="text-align">
6198
6198
  <xsl:choose>
6199
- <xsl:when test="@align"><xsl:value-of select="@align"/></xsl:when>
6199
+ <xsl:when test="@align and not(@align = 'indent')"><xsl:value-of select="@align"/></xsl:when>
6200
6200
  <xsl:when test="ancestor::*[local-name() = 'td']/@align"><xsl:value-of select="ancestor::*[local-name() = 'td']/@align"/></xsl:when>
6201
6201
  <xsl:when test="ancestor::*[local-name() = 'th']/@align"><xsl:value-of select="ancestor::*[local-name() = 'th']/@align"/></xsl:when>
6202
6202
  <xsl:otherwise><xsl:value-of select="$default"/></xsl:otherwise>
6203
6203
  </xsl:choose>
6204
6204
  </xsl:attribute>
6205
+ <xsl:if test="@align = 'indent'">
6206
+ <xsl:attribute name="margin-left">7mm</xsl:attribute>
6207
+ </xsl:if>
6205
6208
  </xsl:template><xsl:template name="number-to-words">
6206
6209
  <xsl:param name="number"/>
6207
6210
  <xsl:param name="first"/>
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module IHO
3
- VERSION = "0.4.1".freeze
3
+ VERSION = "0.4.2".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-iho
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.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: htmlentities