Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Redcloth works correctly now

  • Loading branch information...
commit 92a0e3b7f30338413d210da18e601aeed933951f 1 parent 8382771
Jean-Baptiste Barth jbbarth authored

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. +3 3 app/models/post.rb
6 app/models/post.rb
@@ -101,9 +101,9 @@ def self.strip_html(str, allow = [], add_space = false, replace_entities = false
101 101
102 102 # this fixes redcloth issues because redcloth sucks and i hate it!
103 103 def self.fix_redcloth(input)
104   - input = input.gsub(/\>\s+?\</, '><') # get rid of newlines between tags
105   - input = input.gsub(/\n{2,}/, "\n") # get rid of more than one newline block
106   - input = input.gsub("\n", '<br/>') # replace single newline with BR
  104 + #input = input.gsub(/\>\s+?\</, '><') # get rid of newlines between tags
  105 + #input = input.gsub(/\n{2,}/, "\n") # get rid of more than one newline block
  106 + #input = input.gsub("\n", '<br/>') # replace single newline with BR
107 107 return input
108 108 end
109 109

0 comments on commit 92a0e3b

Please sign in to comment.
Something went wrong with that request. Please try again.