bbcode-rails 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bbcode-rails.rb +1 -1
- data/lib/bbcode-rails/version.rb +1 -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: e92689b8f46d26711cfcab4041edd5b64f02a21a
|
4
|
+
data.tar.gz: 3c7892df9c5f386f3fe64130670e2bf0c226f7b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20ec7751adda1c00022ad58f9e5f789d93490348d1d6376afb6b4e87e8ddac7a520071994bf431e152767c294c7a1ad3f2a615f0813459a5e9d467d097624ecd
|
7
|
+
data.tar.gz: b1d80c0d6396fc43af8a0ea401d6eb7a50e6b01aa4a0e527407469d9bc7cab32dd9d1d5a30f50511526bef732bdeb3483af206f3105042cb428cd36b88122387
|
data/lib/bbcode-rails.rb
CHANGED
@@ -30,7 +30,7 @@ module BBCode
|
|
30
30
|
|
31
31
|
# Taken from bb-ruby, who took it from Rails Actionpack
|
32
32
|
str.gsub!(/\r\n?/, "\n") # \r\n and \r => \n
|
33
|
-
str.gsub!(/\n
|
33
|
+
str.gsub!(/\n+/, '<br>') # 1+ newline => br
|
34
34
|
|
35
35
|
|
36
36
|
# Let's iterate over the pieces to build a tree
|
data/lib/bbcode-rails/version.rb
CHANGED