aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v3/html_minitoc.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sisu/v3/html_minitoc.rb')
-rw-r--r--lib/sisu/v3/html_minitoc.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sisu/v3/html_minitoc.rb b/lib/sisu/v3/html_minitoc.rb
index 160881dd..7390ee7c 100644
--- a/lib/sisu/v3/html_minitoc.rb
+++ b/lib/sisu/v3/html_minitoc.rb
@@ -67,10 +67,10 @@
def initialize(md,data)
@md,@data=md,data
@pat_strip_heading_name=/<a name="h?\d.*?">(.+?)<\/a>/
- @tell=SiSU_Screen::Ansi.new(@md.cmd) if @md
+ @tell=SiSU_Screen::Ansi.new(@md.opt.cmd) if @md
end
def songsheet
- SiSU_Screen::Ansi.new(@md.cmd,'Toc').txt_grey if @md.cmd =~/[MVv]/
+ SiSU_Screen::Ansi.new(@md.opt.cmd,'Toc').txt_grey if @md.opt.cmd =~/[MVv]/
toc=nil
@toc=[]
@data.each do |txt|