naws_xml 0.1.0.pre → 0.1.1.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/naws_xml/engines/ox_engine.rb +1 -0
- data/lib/naws_xml/engines/rexml_engine.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71f0352d4810106a94f52429426af007b4cd57f9
|
4
|
+
data.tar.gz: acc517eab0fdb33dac827daa7f9e4937da1ec0b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3223476caf1992c81b6c793ee76e46452e1d25fb5a490ffa5b4dbe47263d7c5030f03e77fcc4ad133748951e93593d4f486e2971420c3b9da90855f63a860b82
|
7
|
+
data.tar.gz: 294e97ab27700aa1d1db0d549820477c53f1f95fac9c0c838c797266db9edc7460a4f009ea8a2fbb19503240192df99c5c529cb620d2e56d3987909b1d10a026
|
@@ -25,8 +25,8 @@ module NawsXml
|
|
25
25
|
def parse_node(rexml_node)
|
26
26
|
node = Node.new(rexml_node.name)
|
27
27
|
apply_attributes(node, rexml_node)
|
28
|
-
apply_text(node, rexml_node)
|
29
28
|
apply_child_nodes(node, rexml_node)
|
29
|
+
apply_text(node, rexml_node)
|
30
30
|
node
|
31
31
|
end
|
32
32
|
|
@@ -39,7 +39,7 @@ module NawsXml
|
|
39
39
|
def apply_text(node, rexml_node)
|
40
40
|
text = rexml_node.text
|
41
41
|
return if text.nil?
|
42
|
-
return if text.strip.empty?
|
42
|
+
return if text.strip.empty? && !node.empty?
|
43
43
|
node << text
|
44
44
|
end
|
45
45
|
|