avv2word 1.1.22 → 1.1.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 18ca63416516a26399bd8a8bc4fdb124b154a5378a75402a4fe73f1beb7a4513
4
- data.tar.gz: 46ea7f727f63f50582f3ab6a4b017a860b6005be74f5e3a7e6ec2a0502cb7588
3
+ metadata.gz: 16107f41142f5bd0d540898e3045adf72e754bcf23d479e13dde8e8df69ef180
4
+ data.tar.gz: 9e050fefa3afeded8fc481c0961686764a64027204434a4df3b9abfc2c2c4fb9
5
5
  SHA512:
6
- metadata.gz: 4cd938448158a6c89947bf8333f69524c6569df29ad205baa9e74acd431d1119ee20dfe38768709f1dc6c467ef615487e3ed38425e35ae505a90e77600a976a8
7
- data.tar.gz: 6c09d87a1fd542ce1a5251cc9031e5bb8b9089f344189c50036090ed80fc1fe0d8bbfba29c74c85fb300155e782e6293fc6518c95f50be341dc0ab348eb5f4e4
6
+ metadata.gz: eeafd2f7fc91a1e8d92e05dbd4bed38c4f862796391b7f6956bb70d4d3805197289ff723fac14cb9bfc8af150d3cd9c94470e492e245deb69169770a721f5f15
7
+ data.tar.gz: 0d43755c9f7fdfc6734a7e84b48d6021fd336709d9375a1ec36c60bb60e387037c73671b5363e9fc210f90c6abf9b8cd4b6ef65d1fffaee8bbcb4c8e7dd72578
Binary file
@@ -1,3 +1,3 @@
1
1
  module Avv2word
2
- VERSION = '1.1.22'
2
+ VERSION = '1.1.23'
3
3
  end
@@ -332,6 +332,21 @@
332
332
  </xsl:choose>
333
333
  </xsl:template>
334
334
 
335
+ <xsl:template match="span[@data-avv-color]">
336
+ <xsl:comment>
337
+ This template adds text color from data-avv-color for span.
338
+ </xsl:comment>
339
+ <xsl:variable name="color">
340
+ <xsl:value-of select="./@data-avv-color"/>
341
+ </xsl:variable>
342
+ <w:r>
343
+ <w:rPr>
344
+ <w:color w:val="{$color}"/>
345
+ </w:rPr>
346
+ <w:t xml:space="preserve"><xsl:value-of select="."/></w:t>
347
+ </w:r>
348
+ </xsl:template>
349
+
335
350
  <xsl:template match="div[contains(concat(' ', @class, ' '), ' -page-break ')]">
336
351
  <w:p>
337
352
  <w:r>
@@ -157,6 +157,12 @@
157
157
  <xsl:variable name="cell-bg" select="str:tokenize(substring-after(@class, 'ms-fill-'), ' ')[1]"/>
158
158
  <w:shd w:val="clear" w:color="auto" w:fill="{$cell-bg}" />
159
159
  </xsl:if>
160
+
161
+ <xsl:if test="contains(@class, 'avv-background-color-')">
162
+ <xsl:variable name="cell-bg" select="str:tokenize(substring-after(@class, 'avv-background-color-'), ' ')[1]"/>
163
+ <w:shd w:val="clear" w:color="auto" w:fill="{$cell-bg}" />
164
+ </xsl:if>
165
+
160
166
  <xsl:if test="@colspan &gt; 1">
161
167
  <w:gridSpan w:val="{@colspan}"/>
162
168
  </xsl:if>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: avv2word
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.22
4
+ version: 1.1.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marián Bilas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-07-24 00:00:00.000000000 Z
11
+ date: 2019-08-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack