]> source.dussan.org Git - redmine.git/commitdiff
Fixed: lines in wiki content containing just a single wiki link are not displayed.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 15 Sep 2007 17:17:09 +0000 (17:17 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 15 Sep 2007 17:17:09 +0000 (17:17 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@735 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redcloth.rb

index 1228af6ebf397898824c905ee87e5836425e8170..e1a995da23908430824847b4ed00c9953b47b164 100644 (file)
@@ -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+<?(#{HYPERLINK})>?(?:\s+"((?:[^"]|\\")+)")?(?=\s|$)/m
 
     def refs( text )