comparison lib/redmine/wiki_formatting/textile/.svn/text-base/formatter.rb.svn-base @ 441:cbce1fd3b1b7 redmine-1.2

Update to Redmine 1.2-stable branch (Redmine SVN rev 6000)
author Chris Cannam
date Mon, 06 Jun 2011 14:24:13 +0100
parents 94944d00e43c
children
comparison
equal deleted inserted replaced
245:051f544170fe 441:cbce1fd3b1b7
41 private 41 private
42 42
43 # Patch for RedCloth. Fixed in RedCloth r128 but _why hasn't released it yet. 43 # Patch for RedCloth. Fixed in RedCloth r128 but _why hasn't released it yet.
44 # <a href="http://code.whytheluckystiff.net/redcloth/changeset/128">http://code.whytheluckystiff.net/redcloth/changeset/128</a> 44 # <a href="http://code.whytheluckystiff.net/redcloth/changeset/128">http://code.whytheluckystiff.net/redcloth/changeset/128</a>
45 def hard_break( text ) 45 def hard_break( text )
46 text.gsub!( /(.)\n(?!\n|\Z|>| *([#*=]+(\s|$)|[{|]))/, "\\1<br />" ) if hard_breaks 46 text.gsub!( /(.)\n(?!\n|\Z| *([#*=]+(\s|$)|[{|]))/, "\\1<br />" ) if hard_breaks
47 end 47 end
48 48
49 # Patch to add code highlighting support to RedCloth 49 # Patch to add code highlighting support to RedCloth
50 def smooth_offtags( text ) 50 def smooth_offtags( text )
51 unless @pre_list.empty? 51 unless @pre_list.empty?