Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Redcloth works correctly now

  • Loading branch information...
commit 92a0e3b7f30338413d210da18e601aeed933951f 1 parent 8382771
@jbbarth jbbarth authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 app/models/post.rb
View
6 app/models/post.rb
@@ -101,9 +101,9 @@ def self.strip_html(str, allow = [], add_space = false, replace_entities = false
# this fixes redcloth issues because redcloth sucks and i hate it!
def self.fix_redcloth(input)
- input = input.gsub(/\>\s+?\</, '><') # get rid of newlines between tags
- input = input.gsub(/\n{2,}/, "\n") # get rid of more than one newline block
- input = input.gsub("\n", '<br/>') # replace single newline with BR
+ #input = input.gsub(/\>\s+?\</, '><') # get rid of newlines between tags
+ #input = input.gsub(/\n{2,}/, "\n") # get rid of more than one newline block
+ #input = input.gsub("\n", '<br/>') # replace single newline with BR
return input
end
Please sign in to comment.
Something went wrong with that request. Please try again.