aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v2/manpage.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2010-05-03 19:14:10 -0400
committerRalph Amissah <ralph@amissah.com>2010-05-03 19:14:10 -0400
commit65124198251d6e0ac59294f76c30644ad4fac6d5 (patch)
treedc50da8382c66172f740cd233517c7f7243be23e /lib/sisu/v2/manpage.rb
parentdebian/changelog (2.3.1-1) (diff)
parentupdate: changelog, version (2.3.2) (diff)
Merge branch 'upstream' into debian/sid
Diffstat (limited to 'lib/sisu/v2/manpage.rb')
-rw-r--r--lib/sisu/v2/manpage.rb12
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/sisu/v2/manpage.rb b/lib/sisu/v2/manpage.rb
index 89e0e3d7..48b22fd3 100644
--- a/lib/sisu/v2/manpage.rb
+++ b/lib/sisu/v2/manpage.rb
@@ -83,13 +83,11 @@ module SiSU_Manpage
@md=SiSU_Param::Parameters.new(@opt).get
@env=SiSU_Env::Info_env.new(@opt.fns)
path=@env.path.output_tell
- tool=if @opt.cmd =~/[MVv]/; "#{@env.program.text_editor} #{path}/man/#{@md.fn[:manpage]}"
- else ''
- end
- tell=SiSU_Screen::Ansi.new(@opt.cmd,'Manpage',tool)
- tell.green_hi_blue unless @opt.cmd =~/q/
- tell=SiSU_Screen::Ansi.new(@opt.cmd,@opt.fns,"#{@env.path.output_tell}/man/#{@md.fn[:manpage]}")
- tell.flow if @opt.cmd =~/[MV]/
+ tool=(@opt.cmd =~/[MVv]/) \
+ ? "#{@env.program.text_editor} #{path}/man/#{@md.fn[:manpage]}" \
+ : ''
+ SiSU_Screen::Ansi.new(@opt.cmd,'Manpage',tool).green_hi_blue unless @opt.cmd =~/q/
+ SiSU_Screen::Ansi.new(@opt.cmd,@opt.fns,"#{@env.path.output_tell}/man/#{@md.fn[:manpage]}").flow if @opt.cmd =~/[MV]/
my_make=SiSU_Env::Create_file.new(@opt.cmd,@opt.fns)
@dal_array=SiSU_DAL::Source.new(@opt).get # dal file drawn here
SiSU_Manpage::Source::Scroll.new(@md,@dal_array).songsheet