diff --git a/lib/gollum/frontend/app.rb b/lib/gollum/frontend/app.rb index 06bf6798..25237416 100644 --- a/lib/gollum/frontend/app.rb +++ b/lib/gollum/frontend/app.rb @@ -116,7 +116,7 @@ module Precious @content = @page.formatted_data do |doc| # Insert anchors for table of contents - toc = Gollum::Toc_gen.new doc + toc = Gollum::Toc.new doc if (toc_content = toc.generate) toc.insert_anchors @toc_content = toc_content.to_xhtml(:save_with => Nokogiri::XML::Node::SaveOptions::AS_XHTML) @@ -211,7 +211,7 @@ module Precious @content = page.formatted_data do |doc| # Insert anchors for table of contents - toc = Gollum::Toc_gen.new doc + toc = Gollum::Toc.new doc if (toc_content = toc.generate) toc.insert_anchors @toc_content = toc_content.to_xhtml(:save_with => Nokogiri::XML::Node::SaveOptions::AS_XHTML) diff --git a/lib/gollum/toc.rb b/lib/gollum/toc.rb index e0c3dfa8..136218e6 100644 --- a/lib/gollum/toc.rb +++ b/lib/gollum/toc.rb @@ -1,5 +1,5 @@ module Gollum - class Toc_gen + class Toc attr_accessor :header_tags NODE_CONTENT = 0