avv2word 1.1.36 → 1.1.37
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/avv2word/document.rb +4 -0
- data/lib/avv2word/templates/default.docx +0 -0
- data/lib/avv2word/version.rb +1 -1
- data/lib/avv2word/xslt/base.xslt +8 -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: 4dba72f05d26da97e550a062c06917cd8ae4bc0d0aeca8e3ea50b698d1ea37a9
|
4
|
+
data.tar.gz: d20f014128c0e5f421b1c8367969562335f224c6e82fef83da088c41b04f47ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ffb19037b6d64ad5a066b2c76d81f7e46c42e2dc5f96e32b5cb1845dcb76a7f79ac97a189b7f339e5fbb336e2869a55d8746dfc2fc40b8e40904ad39bf78b90
|
7
|
+
data.tar.gz: 7c3207c55fd8e6e4779d5714b9f4086deab434470dc43212c66ad46d19867aa1ca56cbc894717989babb698499b801c69c1e43c4bb9fd0b80f4b392a8cb87bbe
|
data/lib/avv2word/document.rb
CHANGED
Binary file
|
data/lib/avv2word/version.rb
CHANGED
data/lib/avv2word/xslt/base.xslt
CHANGED
@@ -208,12 +208,16 @@
|
|
208
208
|
<xsl:variable name="ilvl" select="@level"></xsl:variable>
|
209
209
|
<xsl:variable name="toc-ref" select="@toc-ref" />
|
210
210
|
<xsl:variable name="cross-ref" select="@cross-ref" />
|
211
|
+
<xsl:variable name="docx-style" select="@data-docx-style" />
|
211
212
|
<w:p>
|
212
213
|
<w:pPr>
|
213
214
|
<xsl:choose>
|
214
215
|
<xsl:when test="string-length(normalize-space($toc-ref)) > 0">
|
215
216
|
<w:pStyle w:val="Heading{$ilvl+1}"/>
|
216
217
|
</xsl:when>
|
218
|
+
<xsl:when test="string-length($docx-style) > 0">
|
219
|
+
<w:pStyle w:val="{$docx-style}"/>
|
220
|
+
</xsl:when>
|
217
221
|
<xsl:otherwise>
|
218
222
|
<w:pStyle w:val="ListParagraph"/>
|
219
223
|
</xsl:otherwise>
|
@@ -413,6 +417,7 @@
|
|
413
417
|
<xsl:template name="text-alignment">
|
414
418
|
<xsl:param name="class" select="@class" />
|
415
419
|
<xsl:param name="style" select="@style" />
|
420
|
+
<xsl:param name="docx-style" select="@data-docx-style" />
|
416
421
|
<xsl:param name="line-height" select="@line-height" />
|
417
422
|
<xsl:param name="margin-bottom" select="@margin-bottom" />
|
418
423
|
<xsl:param name="margin-top" select="@margin-top" />
|
@@ -506,6 +511,9 @@
|
|
506
511
|
<w:jc w:val="{$alignment}"/>
|
507
512
|
</xsl:when>
|
508
513
|
</xsl:choose>
|
514
|
+
<xsl:if test="string-length($docx-style) > 0">
|
515
|
+
<w:pStyle w:val="{$docx-style}"/>
|
516
|
+
</xsl:if>
|
509
517
|
</w:pPr>
|
510
518
|
</xsl:template>
|
511
519
|
|
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.37
|
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: 2020-
|
11
|
+
date: 2020-07-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|