From 780d5fa070ce9a1aaf5642a627f5f1c33cf6c285 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 15 Sep 2007 17:17:09 +0000 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 --- lib/redcloth.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/redcloth.rb b/lib/redcloth.rb index 1228af6e..e1a995da 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 )