diff options
Diffstat (limited to 'lib/rdoc/markup')
-rw-r--r-- | lib/rdoc/markup/to_html.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/rdoc/markup/to_html.rb b/lib/rdoc/markup/to_html.rb index afe35c26ca..37b9492e23 100644 --- a/lib/rdoc/markup/to_html.rb +++ b/lib/rdoc/markup/to_html.rb @@ -268,6 +268,10 @@ class RDoc::Markup::ToHtml < RDoc::Markup::Formatter @res << "\n<h#{level} id=\"#{label}\">" @res << to_html(heading.text) + unless @options.pipe then + @res << "<span><a href=\"##{label}\">¶</a>" + @res << " <a href=\"#documentation\">↑</a></span>" + end @res << "</h#{level}>\n" end |