From 1dea40cd2d2ff1217f8e3145df9f3efc31226fe8 Mon Sep 17 00:00:00 2001 From: Francis Irving Date: Wed, 10 Mar 2010 15:25:01 +0000 Subject: Fix up styling on view XLS as HTML --- app/controllers/request_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/controllers/request_controller.rb') diff --git a/app/controllers/request_controller.rb b/app/controllers/request_controller.rb index d2500dc21..6488ad726 100644 --- a/app/controllers/request_controller.rb +++ b/app/controllers/request_controller.rb @@ -578,11 +578,11 @@ class RequestController < ApplicationController # the same cache code in cache_attachments above will display them. image_dir = File.dirname(ActionController::Base.cache_store.cache_path + "/views" + url_for(params.merge(:only_path => true))) FileUtils.mkdir_p(image_dir) - html, wrapper_class = @attachment.body_as_html(image_dir) + html, wrapper_id = @attachment.body_as_html(image_dir) view_html_stylesheet = render_to_string :partial => "request/view_html_stylesheet" html.sub!(//i, "" + view_html_stylesheet) - html.sub!(/]*>/i, '
') + html.sub!(/]*>/i, '
') html.sub!(/<\/body[^>]*>/i, '
') view_html_prefix = render_to_string :partial => "request/view_html_prefix" -- cgit v1.2.3