Small Cleanup
Small cleanup to the zip export.
This commit is contained in:
parent
8ed5a88db0
commit
09e885d299
1 changed files with 0 additions and 2 deletions
|
@ -68,9 +68,7 @@ class WikiController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
def export_html
|
def export_html
|
||||||
stylesheet = Rails.root.join('public', 'stylesheets', 'instiki.css').read
|
|
||||||
export_pages_as_zip(html_ext) do |page|
|
export_pages_as_zip(html_ext) do |page|
|
||||||
|
|
||||||
renderer = PageRenderer.new(page.revisions.last)
|
renderer = PageRenderer.new(page.revisions.last)
|
||||||
rendered_page = <<-EOL
|
rendered_page = <<-EOL
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg-flat.dtd" >
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg-flat.dtd" >
|
||||||
|
|
Loading…
Add table
Reference in a new issue