docxify 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/docxify/element/paragraph.rb +7 -7
- data/lib/docxify/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc2de5623d8d0605d4aa0ad437c657749e0b39c91c13dc3af0bea385e75dabc3
|
4
|
+
data.tar.gz: 026160dfca1a977e7a8b7563e4268c363918f2130fe2e89dc0346037013d13ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41d3b81b2ef6e3f90a1cc9a0149b19f93b96f86bb581d0c83a7f739d55cac24bae6337871a70c7278039f46ca50ecd164525d3b2f9631a7e329d1bd2e3a54989
|
7
|
+
data.tar.gz: eca5c4a3eeb6855546fb7584605fc6579c8cfbe6a31014b1d0dd9896da9c6e15482c34b2638a98c6bca6d6ca887f0f12c076d71018af6f52bcc1421ba03e5ff1
|
data/CHANGELOG.md
CHANGED
@@ -21,10 +21,10 @@ module DocXify
|
|
21
21
|
|
22
22
|
def to_s(_container = nil)
|
23
23
|
nodes = if @inline_styling
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
24
|
+
parse_simple_html(@text)
|
25
|
+
else
|
26
|
+
[@text.gsub("<", "<").gsub(">", ">")]
|
27
|
+
end
|
28
28
|
|
29
29
|
xml = "<w:p>"
|
30
30
|
|
@@ -58,9 +58,9 @@ module DocXify
|
|
58
58
|
<w:sz w:val="#{DocXify.pt2halfpt(@size)}"/>
|
59
59
|
<w:szCs w:val="#{DocXify.pt2halfpt(@size)}"/>
|
60
60
|
#{"<w:highlight w:val=\"yellow\"/>" if @highlight}
|
61
|
-
#{"<w:b/><w:bCs/>" if node.is_a?(Hash) && node[:tag]
|
62
|
-
#{"<w:i/><w:iCs/>" if node.is_a?(Hash) && node[:tag]
|
63
|
-
#{"<w:u w:val=\"single\"/>" if node.is_a?(Hash) && (node[:tag]
|
61
|
+
#{"<w:b/><w:bCs/>" if node.is_a?(Hash) && node[:tag].match?("b")}
|
62
|
+
#{"<w:i/><w:iCs/>" if node.is_a?(Hash) && node[:tag].match?("i")}
|
63
|
+
#{"<w:u w:val=\"single\"/>" if node.is_a?(Hash) && (node[:tag].match?("u") || node[:tag] == "a")}
|
64
64
|
#{"<w:rStyle w:val=\"Hyperlink\"/>" if node.is_a?(Hash) && node[:tag] == "a"}
|
65
65
|
</w:rPr>
|
66
66
|
XML
|
data/lib/docxify/version.rb
CHANGED