nishisuke-blog-syntax 0.1.4 → 0.1.5

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
  SHA256:
3
- metadata.gz: be771c601a7a4c581734c989b387f39ed6c7d9b5969f93ac642d55a9b8a6b000
4
- data.tar.gz: 054141f1956bedc4aad98bad7cd20633fe8a82c66dbe46cb686aed6d07d141a4
3
+ metadata.gz: 3b1e512af1279e9c97cca74d389350e2e1d728eb694c6f3465db680ae46fda50
4
+ data.tar.gz: 9f84affaae26827fd1c6de40a122e341e127bd5f8abab795cdfb4534be7d2779
5
5
  SHA512:
6
- metadata.gz: f997847397efad6ce7291bbf9e531b1fcde18136f6f5217b2422c1c29d3620751ad1e1d10ba9d3dbd46d0342133a9e88b3a3ec1944a7cc14ec0a298a8f262bae
7
- data.tar.gz: 8c3fc227d143f9c3c3d2136be581b8e91786ba405f760d8c34039fa1545be82aaedb5039f01334f000a8494c690fa887a1809eb2536f2d23ee1df0f33eadcbe7
6
+ metadata.gz: 62c750bc1edb2faba02bb2fbc6cffa1fe48fd80e40f6e844685ed4016cd3faa6c7007d2200e1701a77ded6ac0138b6de9e5761a9131f1cc537883356197e69fd
7
+ data.tar.gz: 1c6ed6b5756c5937a486d7da4f479d2edb95a677f1f534e881d91cbceea0674ac29bdd526d2e35a9cc57b022974c976fce1751ffe7233b024ad5dbbe6fad39fb
@@ -14,7 +14,8 @@ module NishisukeBlogSyntax
14
14
 
15
15
  def substitute(matched)
16
16
  content_str = matched.match(PARSE_REGEXP)[1]
17
- "<p>#{content_str.split("\n").join('<br>')}</p>"
17
+ contents = content_str.split("\n").reject(&:empty?)
18
+ "<p>#{contents.join('<br>')}</p>"
18
19
  end
19
20
  end
20
21
  end
@@ -1,3 +1,3 @@
1
1
  module NishisukeBlogSyntax
2
- VERSION = '0.1.4'
2
+ VERSION = '0.1.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nishisuke-blog-syntax
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - nishisuke