paper_docx_templater 0.1.2 → 0.1.3
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.
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.3
|
|
@@ -59,8 +59,8 @@ module DocxTemplater
|
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
def excute_newline value
|
|
62
|
-
if value =~
|
|
63
|
-
value.split(
|
|
62
|
+
if value =~ /\n/
|
|
63
|
+
value.split(/\n/).inject([]) do |result, str|
|
|
64
64
|
result << PARAGRAPH_ROW.gsub(/\$text\$/, (excute_nested_image_with_text(str)).join)
|
|
65
65
|
end
|
|
66
66
|
else
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: paper_docx_templater
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.3
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -123,7 +123,6 @@ files:
|
|
|
123
123
|
- spec/example_input/test/word/theme/theme1.xml
|
|
124
124
|
- spec/example_input/test/word/webSettings.xml
|
|
125
125
|
- spec/example_input/test.docx
|
|
126
|
-
- spec/example_input/tmp/IntegrationTestOutput.docx
|
|
127
126
|
- spec/example_input/word/document.xml
|
|
128
127
|
- spec/example_input/~$3.docx
|
|
129
128
|
- spec/example_input/~$高考模拟卷.doc
|
|
@@ -199,7 +198,6 @@ test_files:
|
|
|
199
198
|
- spec/example_input/test/word/theme/theme1.xml
|
|
200
199
|
- spec/example_input/test/word/webSettings.xml
|
|
201
200
|
- spec/example_input/test.docx
|
|
202
|
-
- spec/example_input/tmp/IntegrationTestOutput.docx
|
|
203
201
|
- spec/example_input/word/document.xml
|
|
204
202
|
- spec/example_input/~$3.docx
|
|
205
203
|
- spec/example_input/~$高考模拟卷.doc
|
|
Binary file
|