diff options
author | Ralph Amissah <ralph@amissah.com> | 2013-02-06 21:17:46 -0500 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2013-02-06 21:17:46 -0500 |
commit | 5b0d2c1fc909a5a50bd8168428a0ce42364b0b5c (patch) | |
tree | c9cbd4f1851f6a9d56e0c72f9ee6e4f4f5d5880c /lib/sisu/v4/html.rb | |
parent | v4 (v3): version & changelog (diff) |
v4: html, screen reporting for --html-scroll, correctly identify output file
Diffstat (limited to 'lib/sisu/v4/html.rb')
-rw-r--r-- | lib/sisu/v4/html.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/sisu/v4/html.rb b/lib/sisu/v4/html.rb index 9e6ec0fa..530b5faf 100644 --- a/lib/sisu/v4/html.rb +++ b/lib/sisu/v4/html.rb @@ -89,14 +89,17 @@ module SiSU_HTML @fnb=@md.fnb @env=@particulars.env loc=@env.url.output_tell + primary_output_file=(@opt.act[:html_seg][:set]==:on) \ + ? (@md.file.output_path.html_seg.dir + '/' + @md.file.base_filename.html_segtoc) + : (@md.file.output_path.html_scroll.dir + '/' + @md.file.base_filename.html_scroll) unless @opt.cmd =~/q/ tool=(@opt.cmd =~/[MVvz]/) \ - ? ("#{@env.program.web_browser} file://#{@md.file.output_path.html_seg.dir}/#{@md.file.base_filename.html_segtoc}") + ? ("#{@env.program.web_browser} file://#{primary_output_file}") : ("[#{@opt.f_pth[:lng_is]}] #{@opt.fno}") @opt.cmd=~/[MVvz]/ \ ? SiSU_Screen::Ansi.new(@opt.cmd,'HTML',tool).green_hi_blue : SiSU_Screen::Ansi.new(@opt.cmd,'HTML',tool).green_title_hi - SiSU_Screen::Ansi.new(@opt.cmd,@opt.fns,"file://#{@md.file.output_path.html_seg.dir}/#{@md.file.base_filename.html_segtoc}").flow if @opt.cmd =~/[MV]/ + SiSU_Screen::Ansi.new(@opt.cmd,@opt.fns,"file://#{primary_output_file}").flow if @opt.cmd =~/[MV]/ end data=nil tuned_file_array=SiSU_HTML::Source::HTML_Environment.new(@particulars).tuned_file_instructions |