html-pipeline-bungo 0.3.4 → 0.3.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
  SHA1:
3
- metadata.gz: da1d3e4cf8ddea0c94a8cd8006b1fee50d5fcb4a
4
- data.tar.gz: a834007b055d8f24ad1553dce6d9ee500b505131
3
+ metadata.gz: 8f0932647bc61cc247f7708ce536144fcbd0216a
4
+ data.tar.gz: 47afd3f26245c8b82b10fd10b422d91aa49606f5
5
5
  SHA512:
6
- metadata.gz: 838ba9cd4be0e9f17cc673ab5e60f2e6b3b892f80bcd3f8c823aed1b8d16b1b21b6837dbe799497302ed9cfeb2e58a1aaac3b88d76911dcce0328464283d0c6f
7
- data.tar.gz: de5d09950411244ee0446dc3ba799023a85930802520045a832d4f8f0a935fd258a500e01b47df6cfeb50d4950149fd2f95000f3cba11294a7e2f2894deaef82
6
+ metadata.gz: e0d9c6d09504bdf86e4b9bf46b87a6ad2e6e535f5653c8aba34850960525f77dedf9a3023268d2ffccf1ec99368a527cd249dca989eaee690fcb84f6d23f963b
7
+ data.tar.gz: 38e7f75f0214a4f562b2ff4d0bf0c85f6978038f4d254dc956064f115468d85122549b9c5801a90e8a21dbfa2c00309cae333fab6949aeeed73e834867f816b3
@@ -6,7 +6,7 @@ module HTML
6
6
  html = ruby_fliter(html)
7
7
  html = emph_dot_fliter(html)
8
8
  html = bold_fliter(html)
9
- html.gsub!(/(\r\n|\r|\n)/, "\n\n")
9
+ html = paragraph_fliter(html)
10
10
  html.rstrip!
11
11
  html
12
12
  end
@@ -31,6 +31,11 @@ module HTML
31
31
  "<b>#{$1}</b>"
32
32
  end
33
33
  end
34
+
35
+ def paragraph_fliter(text)
36
+ "<p>#{text.gsub(/\r\n|\r|\n/, "</p><p>")}</p>"
37
+ end
38
+
34
39
  end
35
40
  end
36
41
  end
@@ -1,7 +1,7 @@
1
1
  module Html
2
2
  module Pipeline
3
3
  module Bungo
4
- VERSION = "0.3.4"
4
+ VERSION = "0.3.5"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: html-pipeline-bungo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - tetuyoko
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-06-23 00:00:00.000000000 Z
11
+ date: 2016-06-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: html-pipeline