Show
Ignore:
Timestamp:
05/19/2006 15:52:10 (2 years ago)
Author:
cardmagic
Message:

Fixing hardbreaks

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/lib/redcloth/base.rb

    r124 r128  
    392392 
    393393    def hard_break( text ) 
    394         text.gsub!( /(.)\n(?!\Z| *([#*=]+(\s|$)|[{|]))/, "\\1<br />" ) if hard_breaks 
     394        text.gsub!( /(.)\n(?!\n|\Z| *([#*=]+(\s|$)|[{|]))/, "\\1<br />" ) if hard_breaks 
    395395    end 
    396396