aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v3dv/xhtml.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2012-02-03 20:02:32 -0500
committerRalph Amissah <ralph@amissah.com>2012-02-03 20:26:44 -0500
commit145f3092505f614ca5c81a4cbcfea9f22329e745 (patch)
tree9bc696e29f1d8df43f65279c7e1dc4b696cc9007 /lib/sisu/v3dv/xhtml.rb
parentv3 v3dv: vim syntax highlighting, patch from Thilo Six <T.Six@gmx.de> applied (diff)
v3 v3dv: path & url links, updates for multiple output directory structures
Diffstat (limited to 'lib/sisu/v3dv/xhtml.rb')
-rw-r--r--lib/sisu/v3dv/xhtml.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/sisu/v3dv/xhtml.rb b/lib/sisu/v3dv/xhtml.rb
index bf1c964a..050e16d8 100644
--- a/lib/sisu/v3dv/xhtml.rb
+++ b/lib/sisu/v3dv/xhtml.rb
@@ -83,9 +83,10 @@ module SiSU_XHTML
unless @opt.cmd =~/q/
path=@env.path.output_tell
loc=@env.url.output_tell
-
- tool=if @opt.cmd =~/[MV]/; "#{@env.program.web_browser} file://#{@md.file.output_path.xhtml.dir}/#{@md.file.base_filename.xhtml}#{path}/#{@md.fnb}/#{@md.fn[:xhtml]}\n\t#{@env.program.xml_viewer} file://#{@md.file.output_path.xhtml.dir}/#{@md.file.base_filename.xhtml}#{path}/#{@md.fnb}/#{@md.fn[:xhtml]}"
- elsif @opt.cmd =~/v/; "#{@env.program.web_browser} file://#{@md.file.output_path.xhtml.dir}/#{@md.file.base_filename.xhtml}"
+ tool=if @opt.cmd =~/[MV]/
+ "#{@env.program.web_browser} file://#{@md.file.output_path.xhtml.dir}/#{@md.file.base_filename.xhtml}"
+ elsif @opt.cmd =~/v/
+ "#{@env.program.web_browser} file://#{@md.file.output_path.xhtml.dir}/#{@md.file.base_filename.xhtml}"
else "[#{@opt.f_pth[:lng_is]}] #{@opt.fns}"
end
@opt.cmd=~/[MVvz]/ \