avv2word 1.1.28 → 1.1.29

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: 1190cb40490670daa7f680a67ea3b081a79d9c23bb9c5a837009a2bef4bf811a
4
- data.tar.gz: 2079e2bc417ee598f50e6dd50f3ce4a853720289b9b6d62bd1306185b0820178
3
+ metadata.gz: 9f06563e42e5c9701e0d75480f3357ec95cbd18e8ed72ab15904da0d0ad1f45a
4
+ data.tar.gz: 2836f7ef77d3b2d33f35e96d54b65d8220693c1c8e80b47e04da21009eb143da
5
5
  SHA512:
6
- metadata.gz: 77144bc1bd334f9a6033723099a268af7d74ab84da50eaf1e0b6f60728e9ec6e6860d4db3c98c1b4e2d6d75a5c99c4067c728220f523a48b14b2c1cc8614f761
7
- data.tar.gz: 50e86634b0909faaf89f1acbf14f1254e94ce80dfb92bc0862d57f004e0a36d2993a47a03f113f81677879f8cdc31978e435ab8107d4363ecd345f2be8610578
6
+ metadata.gz: a277a0b59de3de585094cb3bc8ca72f6dbf3e063ab41446d8268ef428bda117e01a159feccdee36c0b8a7d2df0a93d78d6d9897a4204fbccfe476339db5b5bad
7
+ data.tar.gz: ac00fa6868fe6a84b19babc2910ffd327ec81f08929e2220fa72dea3b16230dc036bbeded909b9e2db6a6d5f1f923b12a652e874d5d9a2c3af69cad48f3dd157
@@ -1,3 +1,3 @@
1
1
  module Avv2word
2
- VERSION = '1.1.28'
2
+ VERSION = '1.1.29'
3
3
  end
@@ -20,11 +20,29 @@
20
20
 
21
21
  <!-- Full width tables per default -->
22
22
  <xsl:template match="table">
23
+ <xsl:variable name="ind_left" select="@avv-margin-left"></xsl:variable>
24
+ <!--<xsl:variable name="tbl_width" select="@avv-table-width"></xsl:variable>-->
23
25
  <w:tbl>
24
26
  <w:tblPr>
25
27
  <w:tblStyle w:val="TableGrid"/>
26
28
  <w:jc w:val="left"/>
27
- <w:tblInd w:w="0.0" w:type="dxa"/>
29
+
30
+ <!--table width -->
31
+ <!--<w:tblInd w:w="0.0" w:type="dxa"/>-->
32
+ <xsl:choose>
33
+ <xsl:when test="string-length(normalize-space($ind_left)) > 0">
34
+ <w:tblW w:w="{9360 - $ind_left}" w:type="dxa"/>
35
+ </xsl:when>
36
+ <xsl:otherwise>
37
+ <w:tblW w:w="9360" w:type="dxa"/>
38
+ </xsl:otherwise>
39
+ </xsl:choose>
40
+
41
+ <!--table indent left-->
42
+ <w:tblInd w:w="{$ind_left}" w:type="dxa"/>
43
+ <!--table indent left, top; works in word without margin(?), not in libre-->
44
+ <!--<w:tblpPr w:leftFromText="180" w:rightFromText="180" w:vertAnchor="text" w:horzAnchor="page" w:tblpX="{$ind_left}" w:tblpY="{$ind_top}"/>-->
45
+
28
46
  <xsl:call-template name="tableborders"/>
29
47
  <w:tblLayout w:type="fixed"/>
30
48
  <w:tblLook w:val="0600"/>
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.28
4
+ version: 1.1.29
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-10-03 00:00:00.000000000 Z
11
+ date: 2019-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack