diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-09-23 17:03:51 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-09-23 17:03:51 +0000 |
commit | 2e7e26fbb4c82a758bcc0b4a300bbc5ab05d88a9 (patch) | |
tree | 1605aa91f159c4a4a2247fd27a909dab7f8b0058 /lib | |
parent | 9131cdf6b91bb4585b341b54f6ddd6e7eb03d2e1 (diff) | |
download | redmine-2e7e26fbb4c82a758bcc0b4a300bbc5ab05d88a9.tar.gz redmine-2e7e26fbb4c82a758bcc0b4a300bbc5ab05d88a9.zip |
Fixes html escaping.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1901 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r-- | lib/redcloth3.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/redcloth3.rb b/lib/redcloth3.rb index a5e63262c..cbca2bfd1 100644 --- a/lib/redcloth3.rb +++ b/lib/redcloth3.rb @@ -1045,17 +1045,17 @@ class RedCloth3 < String codepre += 1 used_offtags[offtag] = true if codepre - used_offtags.length > 0 - htmlesc( line, :NoQuotes ) unless used_offtags['notextile'] + htmlesc( line, :NoQuotes ) @pre_list.last << line line = "" else - htmlesc( aftertag, :NoQuotes ) if aftertag and not used_offtags['notextile'] + htmlesc( aftertag, :NoQuotes ) if aftertag line = "<redpre##{ @pre_list.length }>" @pre_list << "#{ $3 }#{ aftertag }" end elsif $1 and codepre > 0 if codepre - used_offtags.length > 0 - htmlesc( line, :NoQuotes ) unless used_offtags['notextile'] + htmlesc( line, :NoQuotes ) @pre_list.last << line line = "" end |