aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2017-09-14 22:02:20 +0200
committerMichał Górny <mgorny@gentoo.org>2017-10-12 22:47:59 +0200
commit2d9e3e5a5ff0c60f8373f7fe2e52d518208c2e29 (patch)
treeff4fc016a66c67688bfef3ddcf6d0096d1598fb1
parentglep: Fix initial-header-level (diff)
downloadwww-2d9e3e5a5ff0c60f8373f7fe2e52d518208c2e29.tar.gz
www-2d9e3e5a5ff0c60f8373f7fe2e52d518208c2e29.tar.bz2
www-2d9e3e5a5ff0c60f8373f7fe2e52d518208c2e29.zip
glep: Include table-of-contents
-rw-r--r--_plugins/gleps.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/_plugins/gleps.rb b/_plugins/gleps.rb
index abd2576..3955c3a 100644
--- a/_plugins/gleps.rb
+++ b/_plugins/gleps.rb
@@ -55,7 +55,7 @@ module Gentoo
@replacedby = $1 if line =~ /^Replaced-By: (.*)$/
break if line.chomp.empty?
end
- @content = RbST.new(lines.join('')).to_html(
+ @content = RbST.new(".. contents::\n..\n\n" + lines.join('')).to_html(
'initial-header-level' => 2)
glep_data = {