From 780d5fa070ce9a1aaf5642a627f5f1c33cf6c285 2007-09-15 17:17:09 From: Jean-Philippe Lang Date: 2007-09-15 17:17:09 Subject: [PATCH] Fixed: lines in wiki content containing just a single wiki link are not displayed. git-svn-id: http://redmine.rubyforge.org/svn/trunk@735 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/lib/redcloth.rb b/lib/redcloth.rb index 1228af6..e1a995d 100644 --- a/lib/redcloth.rb +++ b/lib/redcloth.rb @@ -839,7 +839,7 @@ class RedCloth < String end end - TEXTILE_REFS_RE = /(^ *)\[([^\n]+?)\](#{HYPERLINK})(?=\s|$)/ + TEXTILE_REFS_RE = /(^ *)\[([^\[\n]+?)\](#{HYPERLINK})(?=\s|$)/ MARKDOWN_REFS_RE = /(^ *)\[([^\n]+?)\]:\s+?(?:\s+"((?:[^"]|\\")+)")?(?=\s|$)/m def refs( text )