diff options
author | David Paleino <dapal@debian.org> | 2012-07-04 11:18:18 +0200 |
---|---|---|
committer | David Paleino <dapal@debian.org> | 2012-07-04 11:18:18 +0200 |
commit | 3fd9102b01847c816bd8c9253937b0255d200b04 (patch) | |
tree | 1b0e1236bcc3ccf52f12137568baf4ee48d64fbd /web/lib | |
parent | 8f8b7bdca803686bac1e492b18aabaa6bb655238 (diff) | |
download | taginfo-3fd9102b01847c816bd8c9253937b0255d200b04.tar taginfo-3fd9102b01847c816bd8c9253937b0255d200b04.tar.gz |
Fix code for ruby 1.9
Diffstat (limited to 'web/lib')
-rw-r--r-- | web/lib/javascript.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/web/lib/javascript.rb b/web/lib/javascript.rb index 86446fa..27b9790 100644 --- a/web/lib/javascript.rb +++ b/web/lib/javascript.rb @@ -6,7 +6,7 @@ def javascript(url=nil, &block) end def javascript_tags - @javascript.map{ |js| js.to_html } + @javascript.map{ |js| js.to_html }.join("\n") end class Javascript @@ -23,9 +23,9 @@ class Javascript def to_html if @file.nil? - %Q{ <script type="text/javascript">//<![CDATA[\n#{ @content }//]]></script>\n} + %Q{ <script type="text/javascript">//<![CDATA[\n#{ @content }//]]></script>} else - %Q{ <script type="text/javascript" src="/js/#{ @file }.js"></script>\n} + %Q{ <script type="text/javascript" src="/js/#{ @file }.js"></script>} end end |