Remove needless conversion

The fix for page.rb resolved UTF-8 in headers.
This commit is contained in:
bootstraponline
2012-11-30 00:00:28 -07:00
parent 404419d1c3
commit 9b9212cf4c
+1 -5
View File
@@ -126,11 +126,7 @@ module Gollum
node.add_child(%Q{<a href="##{h_name}">#{h.content}</a>})
tail.add_child(node)
end
if toc != nil
# convert to HTML first before XHTML
toc = Nokogiri::HTML::fragment toc.to_s
toc = toc.to_xhtml(:encoding => 'UTF-8')
end
toc = toc.to_xml(@to_xml) if toc != nil
[doc, toc]
end