avv2word 1.1.26 → 1.1.27
Sign up to get free protection for your applications and to get access to all the features.
- 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 +40 -6
- 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: d7b613947419d3537c2d70ce72cb83aef9cb9c7c8f09c3666d3e1896d1d734b3
|
4
|
+
data.tar.gz: 0b04120d00edef64f94cd3b6cbb590394ba63f66107feef9856aa34c96763e3a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38513ba5652d1415d3dd32774e0a1bd18fc4d0ececbcf17cf7eeb926110ddd5b980839df245fb3d7809092f10a4c74327750b815f2fa39ee996cbf3d3f8c9a2c
|
7
|
+
data.tar.gz: d2422bbc430d545e1f21f8bedceb2697ac1d761ea4838dd9070f6a3c0cd38ab2e281ec07b3e8eca327b3e5dae7d723776ed9d5d9b6112e61c9d711a72d63b882
|
Binary file
|
data/lib/avv2word/version.rb
CHANGED
data/lib/avv2word/xslt/base.xslt
CHANGED
@@ -416,8 +416,9 @@
|
|
416
416
|
<xsl:param name="line-height" select="@line-height" />
|
417
417
|
<xsl:param name="margin-bottom" select="@margin-bottom" />
|
418
418
|
<xsl:param name="margin-top" select="@margin-top" />
|
419
|
-
<xsl:param name="text-indent" select="@
|
420
|
-
<xsl:param name="text-hanging" select="@
|
419
|
+
<xsl:param name="text-indent" select="@data-avv-padding-left" />
|
420
|
+
<xsl:param name="text-hanging" select="@data-avv-hanging" />
|
421
|
+
<xsl:param name="text-first" select="@data-avv-first" />
|
421
422
|
<xsl:variable name="alignment">
|
422
423
|
<xsl:choose>
|
423
424
|
<xsl:when test="contains(concat(' ', $class, ' '), ' center ') or contains(translate(normalize-space($style),' ',''), 'text-align:center')">center</xsl:when>
|
@@ -435,8 +436,13 @@
|
|
435
436
|
</xsl:variable>
|
436
437
|
<xsl:variable name="hanging">
|
437
438
|
<xsl:choose>
|
438
|
-
<xsl:when test="
|
439
|
-
<xsl:
|
439
|
+
<xsl:when test="$text-hanging > 0"><xsl:value-of select="$text-hanging"/></xsl:when>
|
440
|
+
<xsl:otherwise></xsl:otherwise>
|
441
|
+
</xsl:choose>
|
442
|
+
</xsl:variable>
|
443
|
+
<xsl:variable name="first">
|
444
|
+
<xsl:choose>
|
445
|
+
<xsl:when test="$text-first > 0"><xsl:value-of select="$text-first"/></xsl:when>
|
440
446
|
<xsl:otherwise></xsl:otherwise>
|
441
447
|
</xsl:choose>
|
442
448
|
</xsl:variable>
|
@@ -461,13 +467,41 @@
|
|
461
467
|
<w:pPr>
|
462
468
|
<w:spacing w:lineRule="atLeast" w:line="{$height}" w:before="{$top}" w:after="{$bottom}"/>
|
463
469
|
<xsl:choose>
|
464
|
-
<xsl:when test="string-length(normalize-space($alignment)) > 0 and string-length(normalize-space($indent)) > 0">
|
470
|
+
<xsl:when test="string-length(normalize-space($alignment)) > 0 and string-length(normalize-space($indent)) > 0 and string-length(normalize-space($hanging)) > 0">
|
465
471
|
<w:ind w:left="{$indent}" w:hanging="{$hanging}"/>
|
466
472
|
<w:jc w:val="{$alignment}"/>
|
467
473
|
</xsl:when>
|
468
|
-
<xsl:when test="string-length(normalize-space($indent)) > 0">
|
474
|
+
<xsl:when test="string-length(normalize-space($alignment)) > 0 and string-length(normalize-space($indent)) > 0 and string-length(normalize-space($first)) > 0">
|
475
|
+
<w:ind w:left="{$indent}" w:firstLine="{$first}"/>
|
476
|
+
<w:jc w:val="{$alignment}"/>
|
477
|
+
</xsl:when>
|
478
|
+
<xsl:when test="string-length(normalize-space($indent)) > 0 and string-length(normalize-space($hanging)) > 0">
|
469
479
|
<w:ind w:left="{$indent}" w:hanging="{$hanging}"/>
|
470
480
|
</xsl:when>
|
481
|
+
<xsl:when test="string-length(normalize-space($indent)) > 0 and string-length(normalize-space($first)) > 0">
|
482
|
+
<w:ind w:left="{$indent}" w:firstLine="{$first}"/>
|
483
|
+
</xsl:when>
|
484
|
+
<xsl:when test="string-length(normalize-space($indent)) > 0 and string-length(normalize-space($alignment)) > 0">
|
485
|
+
<w:ind w:left="{$indent}" w:firstLine="0"/>
|
486
|
+
<w:jc w:val="{$alignment}"/>
|
487
|
+
</xsl:when>
|
488
|
+
<xsl:when test="string-length(normalize-space($hanging)) > 0 and string-length(normalize-space($alignment)) > 0">
|
489
|
+
<w:ind w:left="0" w:hanging="{$hanging}"/>
|
490
|
+
<w:jc w:val="{$alignment}"/>
|
491
|
+
</xsl:when>
|
492
|
+
<xsl:when test="string-length(normalize-space($first)) > 0 and string-length(normalize-space($alignment)) > 0">
|
493
|
+
<w:ind w:left="0" w:firstLine="{$first}"/>
|
494
|
+
<w:jc w:val="{$alignment}"/>
|
495
|
+
</xsl:when>
|
496
|
+
<xsl:when test="string-length(normalize-space($indent)) > 0">
|
497
|
+
<w:ind w:left="{$indent}" w:firstLine="0"/>
|
498
|
+
</xsl:when>
|
499
|
+
<xsl:when test="string-length(normalize-space($hanging)) > 0">
|
500
|
+
<w:ind w:left="0" w:hanging="{$hanging}"/>
|
501
|
+
</xsl:when>
|
502
|
+
<xsl:when test="string-length(normalize-space($first)) > 0">
|
503
|
+
<w:ind w:left="0" w:firstLine="{$first}"/>
|
504
|
+
</xsl:when>
|
471
505
|
<xsl:when test="string-length(normalize-space($alignment)) > 0">
|
472
506
|
<w:jc w:val="{$alignment}"/>
|
473
507
|
</xsl:when>
|
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.27
|
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-09-
|
11
|
+
date: 2019-09-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|