aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rdoc/generator/template/darkfish/_sidebar_table_of_contents.rhtml
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rdoc/generator/template/darkfish/_sidebar_table_of_contents.rhtml')
-rw-r--r--lib/rdoc/generator/template/darkfish/_sidebar_table_of_contents.rhtml8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/rdoc/generator/template/darkfish/_sidebar_table_of_contents.rhtml b/lib/rdoc/generator/template/darkfish/_sidebar_table_of_contents.rhtml
index 225f811f0e..7842625840 100644
--- a/lib/rdoc/generator/template/darkfish/_sidebar_table_of_contents.rhtml
+++ b/lib/rdoc/generator/template/darkfish/_sidebar_table_of_contents.rhtml
@@ -1,4 +1,10 @@
-<% table = current.parse(current.comment).table_of_contents
+<% comment = if current.respond_to? :comment_location then
+ current.comment_location
+ else
+ current.comment
+ end
+ table = current.parse(comment).table_of_contents
+
if table.length > 1 then %>
<div id="table-of-contents">
<nav class="section">