diff options
author | Maxime Lapointe <hunter_spawn@hotmail.com> | 2019-05-30 16:46:18 -0400 |
---|---|---|
committer | aycabta <aycabta@gmail.com> | 2019-07-14 17:46:16 +0900 |
commit | b67b07bd5bd94433051b5e0a5db800f8b22361b4 (patch) | |
tree | d228a8f792474d215f7f76f3d90a0d39aaf7a85e /lib/rdoc | |
parent | 73904abb951ad60483124fa620b5561015906a79 (diff) |
Fix links to headings
A previous change made the header's id be fully referenced (for the sidebar I believe) but this broke links to them.
This fixes the issue.
Diffstat (limited to 'lib/rdoc')
-rw-r--r-- | lib/rdoc/markup/to_html_crossref.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rdoc/markup/to_html_crossref.rb b/lib/rdoc/markup/to_html_crossref.rb index 2fbddeb83b..4a1350a73c 100644 --- a/lib/rdoc/markup/to_html_crossref.rb +++ b/lib/rdoc/markup/to_html_crossref.rb @@ -153,7 +153,7 @@ class RDoc::Markup::ToHtmlCrossref < RDoc::Markup::ToHtml ref.sections.any? { |section| label == section.title } then path << "##{label}" else - path << "#label-#{label}" + path << "##{ref.aref}-label-#{label}" end if label "<a href=\"#{path}\">#{text}</a>" |