<%- if @render_to_file %>
  <style>
  <%= raw File.read(Rails.root.join('app', 'assets', 'stylesheets', 'main.css')) %>
  <%= raw File.read(Rails.root.join('app', 'assets', 'stylesheets', 'print.css')) %>
  </style>
<%- else %>
  <%= stylesheet_link_tag 'main', :title => "Main", :rel => "stylesheet", :media => "all" %>
  <%= stylesheet_link_tag 'fonts', :rel => "stylesheet", :media => "all"  %>
  <%= stylesheet_link_tag 'print', :rel => "stylesheet", :media => "print"  %>
  <% if !params[:print_stylesheet].nil? %>
  <%= stylesheet_link_tag 'print', :rel => "stylesheet", :media => "all"  %>
  <% end %>
  <%= stylesheet_link_tag 'jquery-ui-1.8.15.custom.css', :rel => 'stylesheet'%>
  <!--[if LT IE 7]>
  <%= stylesheet_link_tag 'ie6.css' %>
  <![endif]-->
  <!--[if LT IE 8]>
  <%= stylesheet_link_tag 'ie7.css' %>
  <![endif]-->
  <% if AlaveteliConfiguration::force_registration_on_new_request %>
  <%= stylesheet_link_tag 'jquery.fancybox-1.3.4', :rel => "stylesheet"  %>
  <% end %>
<% end %>

<%- if @render_to_file %>
  <style>
  <%= Rails.application.assets["main.css"].to_s %>
  <%= Rails.application.assets["print.css"].to_s %>
  </style>
<%- else %>
  <%= stylesheet_link_tag 'main', :title => "Main", :rel => "stylesheet", :media => "all" %>
  <%= stylesheet_link_tag 'fonts', :rel => "stylesheet", :media => "all"  %>
  <%= stylesheet_link_tag 'print', :rel => "stylesheet", :media => "print"  %>
  <% if !params[:print_stylesheet].nil? %>
  <%= stylesheet_link_tag 'print', :rel => "stylesheet", :media => "all"  %>
  <% end %>
  <%= stylesheet_link_tag 'jquery-ui-1.8.15.custom.css', :rel => 'stylesheet'%>
  <!--[if LT IE 7]>
  <%= stylesheet_link_tag 'ie6.css' %>
  <![endif]-->
  <!--[if LT IE 8]>
  <%= stylesheet_link_tag 'ie7.css' %>
  <![endif]-->
  <% if AlaveteliConfiguration::force_registration_on_new_request %>
  <%= stylesheet_link_tag 'jquery.fancybox-1.3.4', :rel => "stylesheet"  %>
  <% end %>
<% end %>

Fix the inclusion of CSS in output for zip file download
Fix the inclusion of CSS in output for zip file download
