]> source.dussan.org Git - redmine.git/commitdiff
remove spaces inside {} of lib/redmine/views/other_formats_builder.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 21 Nov 2020 13:52:30 +0000 (13:52 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 21 Nov 2020 13:52:30 +0000 (13:52 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20461 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/views/other_formats_builder.rb

index 6eb1d312fcaff2f85421a76f54367a65b6cea7d3..a7d7938612e0c933e03daf3a0caef33272dea6b2 100644 (file)
@@ -25,9 +25,9 @@ module Redmine
       end
 
       def link_to(name, options={})
-        url = { :format => name.to_s.downcase }.merge(options.delete(:url) || {}).except('page')
+        url = {:format => name.to_s.downcase}.merge(options.delete(:url) || {}).except('page')
         caption = options.delete(:caption) || name
-        html_options = { :class => name.to_s.downcase, :rel => 'nofollow' }.merge(options)
+        html_options = {:class => name.to_s.downcase, :rel => 'nofollow'}.merge(options)
         @view.content_tag('span', @view.link_to(caption, url, html_options))
       end
 
@@ -37,7 +37,7 @@ module Redmine
         url = {:params => params, :page => nil, :format => name.to_s.downcase}.merge(url)
 
         caption = options.delete(:caption) || name
-        html_options = { :class => name.to_s.downcase, :rel => 'nofollow' }.merge(options)
+        html_options = {:class => name.to_s.downcase, :rel => 'nofollow'}.merge(options)
         @view.content_tag('span', @view.link_to(caption, url, html_options))
       end
     end