yamlt 0.0.18 → 0.0.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/yamlt/parser/line/serializer.rb +5 -1
- 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: bd90ded7f462c2f4136c9dfbb4926efec78a3ea5
|
4
|
+
data.tar.gz: cf6f2befaca3547e57d4a77daaac86e43f3e24be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca73d35f31265535af40e942cd94ea452d5d31fc15b82a34d36094b5eba1ee18954403ae060514ef5d2486572dfa4752311c386b96fcee05e584384d506479d3
|
7
|
+
data.tar.gz: 265247b81a1ada4bb4ac5e7bb85a8ae9c01eb94557a9cf1c3b9e08d7ec0d98b746a16af6196b09e413007cfc60a2d8da21d680bbfb40f129fcc87f0f7ec08cc5
|
@@ -53,7 +53,11 @@ module Yamlt
|
|
53
53
|
if value.include?($/)
|
54
54
|
"|\n" +
|
55
55
|
value.split($/).map do |value_part|
|
56
|
-
|
56
|
+
if /^\s*$/ === value_part
|
57
|
+
""
|
58
|
+
else
|
59
|
+
"#{indent(@line.level + 1)}#{escaped(value_part)}"
|
60
|
+
end
|
57
61
|
end.join($/)
|
58
62
|
else
|
59
63
|
"\"#{escaped(value)}\""
|