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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 736707264f61e3efa8e47dc97679cf31c6212901
4
- data.tar.gz: ffebd17ae4f1fc94fe0d7800d8ba3e196718c7b0
3
+ metadata.gz: bd90ded7f462c2f4136c9dfbb4926efec78a3ea5
4
+ data.tar.gz: cf6f2befaca3547e57d4a77daaac86e43f3e24be
5
5
  SHA512:
6
- metadata.gz: 1f7810b4c8bea3e38bf769bef673e0c7be935449823cb31880d728e8724412a6b69120f6b1864a0474a3ac3bc0b680dd93e4b957b1507d9c5b5f634a8b2fcf57
7
- data.tar.gz: 830c7639022326bc46e0f145207d774b09115be0bc0f02ad918f54f87cc8961c424882f052d4d79d36ce58461b0b3841a3aa127b82dcb659cf8203dd0bfa4f16
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
- "#{indent(@line.level + 1)}\"#{escaped(value_part)}\""
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)}\""
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yamlt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.18
4
+ version: 0.0.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tangerine Cat