Commit aaf12df273f641d1e53f4eb36b2016f303513671

Authored by AntonioTerceiro
1 parent 53d7eb88

r247@sede: terceiro | 2007-07-29 18:45:46 -0300

ActionItem0: adding newlines after every helper result
 


git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@251 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing 1 changed file with 6 additions and 6 deletions   Show diff stats
vendor/plugins/design/lib/design/helper.rb
... ... @@ -36,7 +36,7 @@ module Design
36 36  
37 37 design.boxes.map do |box|
38 38 content_tag(:div, design_display_blocks(box, content) , :id=>"box_#{box.number}")
39   - end.join("\n")
  39 + end.join("\n") + "\n"
40 40 end
41 41  
42 42 # Displays all the blocks in a box.
... ... @@ -51,7 +51,7 @@ module Design
51 51 # FIXME: should that actually be list_content?
52 52 text = block.main? ? content : design_block_content(block)
53 53 content_tag(:div, text, :class => "block" , :id => "block_#{block.id}" )
54   - end.join("\n")
  54 + end.join("\n")+ "\n"
55 55 end
56 56  
57 57 # Displays the content of a block. See plugin README for details about the
... ... @@ -93,7 +93,7 @@ module Design
93 93  
94 94 javascript_files.map do |filename|
95 95 javascript_include_tag('/' + File.join(Design.design_root, 'templates', design.template, 'javascripts', File.basename(filename)))
96   - end.join("\n")
  96 + end.join("\n") + "\n"
97 97 end
98 98  
99 99 # Generates links to all the CSS files provided by the template being used.
... ... @@ -109,7 +109,7 @@ module Design
109 109  
110 110 stylesheet_files.map do |filename|
111 111 stylesheet_link_tag('/' + File.join(Design.design_root, 'templates', design.template, 'stylesheets', File.basename(filename)))
112   - end.join("\n")
  112 + end.join("\n") + "\n"
113 113 end
114 114  
115 115  
... ... @@ -129,7 +129,7 @@ module Design
129 129  
130 130 stylesheet_files.map do |filename|
131 131 stylesheet_link_tag('/' + File.join(Design.design_root, 'themes', design.theme, File.basename(filename)))
132   - end.join("\n")
  132 + end.join("\n") + "\n"
133 133  
134 134 end
135 135  
... ... @@ -147,7 +147,7 @@ module Design
147 147 # Rails helper
148 148 def design_display_icon(icon, options = {})
149 149 filename = (icon =~ /\.png$/) ? icon : (icon + '.png')
150   - image_tag('/' + File.join(Design.design_root, 'icons', design.icon_theme, filename), options)
  150 + image_tag('/' + File.join(Design.design_root, 'icons', design.icon_theme, filename), options) + "\n"
151 151 end
152 152  
153 153 ###############################################
... ...