nishisuke-blog-syntax 0.1.6 → 0.1.7

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: 38b763c0cc19e743556a7180adfd6ca8d326e9c435463a927adffb1f9916f6f8
4
- data.tar.gz: 3ed64a7d010cb63d07b5444bad1d33c85e8c9fb90598c4e421bb9cc284326d03
3
+ metadata.gz: 75e2f2748f568619329c649d46d14c7fddc4fd43371eb7168f3e31ce0eba3afb
4
+ data.tar.gz: 208a632ce5c7b30b424889aa129545360fba55149cd1b4da96fc3d13642b093d
5
5
  SHA512:
6
- metadata.gz: 5243ab8917f0577f255e575c211c36de4d88826a63ec1c4125394ceba9e3dd2694e10a8f8e38a29228a3539cbc5457f45a25d35f9c6653cdfcd64b4b3ab2a03c
7
- data.tar.gz: a535fb57706d8a42b558722b4b97a362c27998f42a9ee10be27d829b054016ca5ad1380099c618fd0da7ff9572ad9c36f6f758ad7865cc69226c1a7656a4bee1
6
+ metadata.gz: 0763d64bdda48feeef0f38f64b2dca94a962f4d3fbd9a3d9c1f9357bcfe8f8e4944037b593a0a1fdfe1c05b430ab74d73745ca4c8dbb18b7d0eff5fa904a5139
7
+ data.tar.gz: e8e96df8261134908e64098c8f78ef14a72fdffa1889b9d480c7c589b78022f6b276711e745b6439bdee8b1f6be9946f0ad0c11b3f15bca1eebd27a55f5d0264
@@ -14,8 +14,8 @@ module NishisukeBlogSyntax
14
14
 
15
15
  def substitute(matched)
16
16
  content_str = matched.match(PARSE_REGEXP)[1]
17
- contents = content_str.split("\n").reject(&:empty?)
18
- "<p>#{contents.join('<br>')}</p>"
17
+ content_str.gsub!(/\R|\s+/, ' ')
18
+ "<p>#{content_str.chop}</p>"
19
19
  end
20
20
  end
21
21
  end
@@ -1,3 +1,3 @@
1
1
  module NishisukeBlogSyntax
2
- VERSION = '0.1.6'
2
+ VERSION = '0.1.7'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nishisuke-blog-syntax
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - nishisuke
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-01-15 00:00:00.000000000 Z
11
+ date: 2018-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler