aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2012-05-28 05:30:42 -0400
committerRalph Amissah <ralph@amissah.com>2012-05-28 05:30:50 -0400
commitfae668e5e5595c6e2b52cd6855b296937d996d3b (patch)
treeabfdda59d5b7c9b6799cacec1a91d22aa607d75f /lib
parentv3: sisupod.txz processing (diff)
v3: hub, share markup source (--source) not available for composite files
* suggest creating a sisupod instead
Diffstat (limited to 'lib')
-rw-r--r--lib/sisu/v3/hub.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/sisu/v3/hub.rb b/lib/sisu/v3/hub.rb
index daa75166..a2902075 100644
--- a/lib/sisu/v3/hub.rb
+++ b/lib/sisu/v3/hub.rb
@@ -358,8 +358,12 @@ p "#{__LINE__}:#{__FILE__}" if @opt.act[:maintenance][:set] ==:on
end
end
if @opt.act[:share_source][:set]==:on
- requires('share_src') # -s share_src.rb
- SiSU_Markup::Source.new(@opt).read
+ if @opt.fno =~/\.ssm$/
+ SiSU_Screen::Ansi.new(@opt.cmd,'WARNING: share text source (--source) not available for composite files (.ssm),', 'composite (.ssm) source documents may be shared as a sisupod (--sisupod) (.txz)').warn unless @opt.cmd =~/q/
+ else
+ requires('share_src') # -s share_src.rb
+ SiSU_Markup::Source.new(@opt).read
+ end
end
if @opt.act[:qrcode][:set]==:on #% --qrcode, -Q
requires('qrcode') # -Q qrcode.rb