From 8bfe83fa209ad36460f2311269b400b17cd2b495 Mon Sep 17 00:00:00 2001 From: Matthias Tarasiewicz Date: Tue, 16 Jan 2007 07:21:16 +0000 Subject: [PATCH] fix PDF output not to contain garbage chars [Jesse Newland] --- app/controllers/wiki_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/wiki_controller.rb b/app/controllers/wiki_controller.rb index 7223ac31..6bf52f7c 100644 --- a/app/controllers/wiki_controller.rb +++ b/app/controllers/wiki_controller.rb @@ -306,7 +306,7 @@ class WikiController < ApplicationController def export_page_to_tex(file_path) tex - File.open(file_path, 'w') { |f| f.write(render_to_string(:template => 'wiki/tex', :layout => nil)) } + File.open(file_path, 'w') { |f| f.write(render_to_string(:template => 'wiki/tex', :layout => false)) } end def export_pages_as_zip(file_type, &block) @@ -424,5 +424,6 @@ class WikiController < ApplicationController [] end end + end