avv2word 1.1.35 → 1.1.36
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb52c5deb88c67448608c3af250a1773ea4a9ad115f4542ed82fd3c74be2a3d5
|
4
|
+
data.tar.gz: 9d1cbc3acde39f6af4a0ed2b71fe7665fa5f7622d53cdb0f0ea969d67067cb10
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65b1c15f4dc463c8cf651a9707ba4f0280b67913020e2aadd5a38c6028169f9a97200905edc78aa4aff68bc94cc352652410e43ddb228cf26a7405d1854245b2
|
7
|
+
data.tar.gz: 1622e8b3a15022bbe4878e3a628ff055d2921832a3e0c3989b3c1088f03b9c52962733417ba9c97cfb2724bf7e675f6f2048350d5875a30bd66574270daba7f6
|
data/lib/avv2word/document.rb
CHANGED
@@ -269,8 +269,8 @@ module Avv2word
|
|
269
269
|
styles = Nokogiri::XML.parse(zipfile.read("word/styles.xml"))
|
270
270
|
end
|
271
271
|
end
|
272
|
-
[ '<w:style w:type="paragraph" w:styleId="FootnoteText"><w:name w:val="footnote text"/><w:basedOn w:val="Normal"/><w:link w:val="FootnoteTextChar"/><w:uiPriority w:val="99"/><w:semiHidden/><w:unhideWhenUsed/><w:rsid w:val="008D12FB"/></w:style>',
|
273
|
-
'<w:style w:type="character" w:customStyle="1" w:styleId="FootnoteTextChar"><w:name w:val="Footnote Text Char"/><w:basedOn w:val="DefaultParagraphFont"/><w:link w:val="FootnoteText"/><w:uiPriority w:val="99"/><w:semiHidden
|
272
|
+
[ '<w:style w:type="paragraph" w:styleId="FootnoteText"><w:name w:val="footnote text"/><w:basedOn w:val="Normal"/><w:link w:val="FootnoteTextChar"/><w:uiPriority w:val="99"/><w:semiHidden/><w:unhideWhenUsed/><w:rsid w:val="008D12FB"/><w:rsid w:val="008D12FB"/><w:rPr><w:sz w:val="16"/></w:rPr></w:style>',
|
273
|
+
'<w:style w:type="character" w:customStyle="1" w:styleId="FootnoteTextChar"><w:name w:val="Footnote Text Char"/><w:basedOn w:val="DefaultParagraphFont"/><w:link w:val="FootnoteText"/><w:uiPriority w:val="99"/><w:semiHidden/></w:style>',
|
274
274
|
'<w:style w:type="character" w:styleId="FootnoteReference"><w:name w:val="footnote reference"/><w:basedOn w:val="DefaultParagraphFont"/><w:uiPriority w:val="99"/><w:semiHidden/><w:unhideWhenUsed/><w:rsid w:val="008D12FB"/><w:rPr><w:vertAlign w:val="superscript"/></w:rPr></w:style>'
|
275
275
|
].each do |new_style|
|
276
276
|
styles.children.first << Nokogiri::XML.parse(new_style).child
|
Binary file
|
data/lib/avv2word/version.rb
CHANGED
data/lib/avv2word/xslt/base.xslt
CHANGED
@@ -280,7 +280,7 @@
|
|
280
280
|
</w:p>
|
281
281
|
</xsl:template>
|
282
282
|
|
283
|
-
<xsl:template match="text()[
|
283
|
+
<xsl:template match="text()[(parent::li) and not(parent::td) and not(parent::pre) and (preceding-sibling::h1 or preceding-sibling::h2 or preceding-sibling::h3 or preceding-sibling::h4 or preceding-sibling::h5 or preceding-sibling::h6 or preceding-sibling::table or preceding-sibling::p or preceding-sibling::ol or preceding-sibling::ul or preceding-sibling::div or following-sibling::h1 or following-sibling::h2 or following-sibling::h3 or following-sibling::h4 or following-sibling::h5 or following-sibling::h6 or following-sibling::table or following-sibling::p or following-sibling::ol or following-sibling::ul or following-sibling::div)]">
|
284
284
|
<xsl:comment>
|
285
285
|
In the following situation:
|
286
286
|
|
@@ -18,7 +18,7 @@
|
|
18
18
|
<xsl:attribute name="style"><xsl:value-of select="../@style"/></xsl:attribute>
|
19
19
|
<xsl:call-template name="inlineElement"/>
|
20
20
|
</div>
|
21
|
-
<xsl:apply-templates select="following-sibling::node()[not((self::a|self::b|self::i|self::s|self::span|self::sub|self::sup|self::u|self::delete|self::insert|self::text())[parent::div|parent::li|parent::td])][1]"/>
|
21
|
+
<xsl:apply-templates select="following-sibling::node()[not((self::a|self::b|self::i|self::s|self::span|self::sub|self::sup|self::u|self::delete|self::insert|self::cross-ref|self::text())[parent::div|parent::li|parent::td])][1]"/>
|
22
22
|
</xsl:template>
|
23
23
|
|
24
24
|
<!-- get following inline elements... -->
|
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.36
|
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-
|
11
|
+
date: 2020-05-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|