From bb417c697584ce84d77ce5103cc0d8dcab681116 Mon Sep 17 00:00:00 2001 From: kristi Date: Wed, 9 May 2012 12:18:24 -0700 Subject: [PATCH] Rename class to Toc --- lib/gollum/frontend/app.rb | 4 ++-- lib/gollum/toc.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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