avv2word 1.1.36 → 1.1.37

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: fb52c5deb88c67448608c3af250a1773ea4a9ad115f4542ed82fd3c74be2a3d5
4
- data.tar.gz: 9d1cbc3acde39f6af4a0ed2b71fe7665fa5f7622d53cdb0f0ea969d67067cb10
3
+ metadata.gz: 4dba72f05d26da97e550a062c06917cd8ae4bc0d0aeca8e3ea50b698d1ea37a9
4
+ data.tar.gz: d20f014128c0e5f421b1c8367969562335f224c6e82fef83da088c41b04f47ce
5
5
  SHA512:
6
- metadata.gz: 65b1c15f4dc463c8cf651a9707ba4f0280b67913020e2aadd5a38c6028169f9a97200905edc78aa4aff68bc94cc352652410e43ddb228cf26a7405d1854245b2
7
- data.tar.gz: 1622e8b3a15022bbe4878e3a628ff055d2921832a3e0c3989b3c1088f03b9c52962733417ba9c97cfb2724bf7e675f6f2048350d5875a30bd66574270daba7f6
6
+ metadata.gz: 7ffb19037b6d64ad5a066b2c76d81f7e46c42e2dc5f96e32b5cb1845dcb76a7f79ac97a189b7f339e5fbb336e2869a55d8746dfc2fc40b8e40904ad39bf78b90
7
+ data.tar.gz: 7c3207c55fd8e6e4779d5714b9f4086deab434470dc43212c66ad46d19867aa1ca56cbc894717989babb698499b801c69c1e43c4bb9fd0b80f4b392a8cb87bbe
@@ -100,6 +100,10 @@ module Avv2word
100
100
  def footnotes_xml_file
101
101
  'word/footnotes.xml'
102
102
  end
103
+
104
+ def styles_xml_file
105
+ 'word/styles.xml'
106
+ end
103
107
  end
104
108
 
105
109
  def initialize(template_path)
@@ -1,3 +1,3 @@
1
1
  module Avv2word
2
- VERSION = '1.1.36'
2
+ VERSION = '1.1.37'
3
3
  end
@@ -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.36
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-05-22 00:00:00.000000000 Z
11
+ date: 2020-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack