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 +4 -4
- data/lib/avv2word/templates/default.docx +0 -0
- data/lib/avv2word/version.rb +1 -1
- data/lib/avv2word/xslt/base.xslt +15 -0
- data/lib/avv2word/xslt/tables.xslt +6 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 16107f41142f5bd0d540898e3045adf72e754bcf23d479e13dde8e8df69ef180
|
|
4
|
+
data.tar.gz: 9e050fefa3afeded8fc481c0961686764a64027204434a4df3b9abfc2c2c4fb9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: eeafd2f7fc91a1e8d92e05dbd4bed38c4f862796391b7f6956bb70d4d3805197289ff723fac14cb9bfc8af150d3cd9c94470e492e245deb69169770a721f5f15
|
|
7
|
+
data.tar.gz: 0d43755c9f7fdfc6734a7e84b48d6021fd336709d9375a1ec36c60bb60e387037c73671b5363e9fc210f90c6abf9b8cd4b6ef65d1fffaee8bbcb4c8e7dd72578
|
|
Binary file
|
data/lib/avv2word/version.rb
CHANGED
data/lib/avv2word/xslt/base.xslt
CHANGED
|
@@ -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 > 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.
|
|
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-
|
|
11
|
+
date: 2019-08-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: actionpack
|