diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-03-17 23:01:35 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-03-17 23:01:35 +0000 |
commit | 7673d69b96cff840b0b6bce748fdb4887883aeb0 (patch) | |
tree | 7887fb4428876de5fa39d906bae2ea4bbcd30c61 /lib | |
parent | 1c4bcc5b558e6dd89456edf80811c9e701168845 (diff) | |
download | redmine-7673d69b96cff840b0b6bce748fdb4887883aeb0.tar.gz redmine-7673d69b96cff840b0b6bce748fdb4887883aeb0.zip |
Fixes #880: code tags not formatted correctly in the wiki (broken by r1216).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1271 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r-- | lib/redcloth.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redcloth.rb b/lib/redcloth.rb index 7e88007a6..14940cb88 100644 --- a/lib/redcloth.rb +++ b/lib/redcloth.rb @@ -1130,7 +1130,7 @@ class RedCloth < String end end - ALLOWED_TAGS = %w(redpre pre) + ALLOWED_TAGS = %w(redpre pre code) def escape_html_tags(text) text.gsub!(%r{<((\/?)(\w+))}) {|m| ALLOWED_TAGS.include?($3) ? "<#{$1}" : "<#{$1}" } |