Better handling of external link style assignment.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@792 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
1 parent
48fb20f540
commit
47e7ceacd7
4 files changed
+14
-16
No files matched your search
+3
-1
@@ -784,7 +784,9 @@ class RedCloth < String
|
||||
atts << " title=\"#{ title }\"" if title
|
||||
atts = shelve( atts ) if atts
|
||||
|
||||
"#{ pre }<a#{ atts }>#{ text }</a>#{ post }"
|
||||
external = (url =~ /^http:\/\//) ? ' class="external"' : ''
|
||||
|
||||
"#{ pre }<a#{ atts }#{ external }>#{ text }</a>#{ post }"
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user