From 291e2b7e8bd9a2c7de5e0413a115dd7907a02941 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Tue, 2 May 2023 13:10:43 +0900 Subject: [PATCH] Fix references to nested label in table_of_contents Fixes #1000 --- .../template/darkfish/table_of_contents.rhtml | 2 +- test/rdoc/test_rdoc_generator_darkfish.rb | 12 +++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/lib/rdoc/generator/template/darkfish/table_of_contents.rhtml b/lib/rdoc/generator/template/darkfish/table_of_contents.rhtml index 941ff9d630..09b5379fc0 100644 --- a/lib/rdoc/generator/template/darkfish/table_of_contents.rhtml +++ b/lib/rdoc/generator/template/darkfish/table_of_contents.rhtml @@ -36,7 +36,7 @@ unless table.empty? then %> <%- end -%> diff --git a/test/rdoc/test_rdoc_generator_darkfish.rb b/test/rdoc/test_rdoc_generator_darkfish.rb index bb6be28201..96319bb4f7 100644 --- a/test/rdoc/test_rdoc_generator_darkfish.rb +++ b/test/rdoc/test_rdoc_generator_darkfish.rb @@ -113,7 +113,9 @@ def test_generate refute_match(/Ignored/, File.binread('index.html')) summary = File.binread('index.html')[%r[.*]m] assert_match(%r[Klass/Inner\.html".*>Inner<], summary) - klassnav = File.binread('Klass.html')[%r[