diff options
author | James Turnbull <james@lovedthanlost.net> | 2010-09-16 09:34:15 +1000 |
---|---|---|
committer | James Turnbull <james@lovedthanlost.net> | 2010-09-16 09:34:15 +1000 |
commit | 216f66326381486ad1f63e74fccca0e359ff9a15 (patch) | |
tree | 50cba0146e2566be4b41a2f737cf18e4b6e40aa7 | |
parent | c3cb57c73865255469947a480d34b32cdbfdba2a (diff) | |
download | puppet-216f66326381486ad1f63e74fccca0e359ff9a15.tar.gz puppet-216f66326381486ad1f63e74fccca0e359ff9a15.tar.xz puppet-216f66326381486ad1f63e74fccca0e359ff9a15.zip |
Fixed Puppet Doc TOC generation
-rw-r--r-- | lib/puppet/util/reference.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/puppet/util/reference.rb b/lib/puppet/util/reference.rb index 5fedb5f48..99458aa57 100644 --- a/lib/puppet/util/reference.rb +++ b/lib/puppet/util/reference.rb @@ -32,7 +32,7 @@ class Puppet::Util::Reference section = reference(name) or raise "Could not find section #{name}" depth = section.depth if section.depth < depth end - text = "{:toc}\n\n" + text = "* TOC text.\n{:toc}\n\n" end def self.pdf(text) @@ -141,7 +141,7 @@ class Puppet::Util::Reference # First the header text = h(@title, 1) text += "\n\n**This page is autogenerated; any changes will get overwritten** *(last generated on #{Time.now.to_s})*\n\n" - text += "{:toc}\n\n" if withcontents + text += "* TOC Text.\n{:toc}\n\n" if withcontents text += @header |