aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v0/sisupod_make.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sisu/v0/sisupod_make.rb')
-rw-r--r--lib/sisu/v0/sisupod_make.rb12
1 files changed, 9 insertions, 3 deletions
diff --git a/lib/sisu/v0/sisupod_make.rb b/lib/sisu/v0/sisupod_make.rb
index 277358c4..af60cf4e 100644
--- a/lib/sisu/v0/sisupod_make.rb
+++ b/lib/sisu/v0/sisupod_make.rb
@@ -167,9 +167,12 @@ module SiSU_Doc
file_array=IO.readlines(use_file,'')
skin,images,doc_import=[],[],[]
file_array.each do |f| #% work area
- if f !~/^%\s/
+ if f !~/^%+\s/
skin << f.scan(@rgx_skin).uniq.flatten if f =~@rgx_skin
- images << f.scan(@rgx_image).uniq if f =~@rgx_image
+ if f !~/^%+\s/ \
+ and f =~@rgx_image
+ images << f.scan(@rgx_image).uniq
+ end
elsif f =~/^%\s/ \
and @opt.fns =~/\.ssm\.sst$/
doc_import << f.scan(@rgx_doc_import).uniq if f =~@rgx_doc_import
@@ -208,7 +211,10 @@ module SiSU_Doc
#2. need images used by skin, scan skin??
if images \
and images.length > 1
- images.flatten!.uniq!
+ images.flatten!
+ images.uniq!
+ images.delete_if {|x| x =~/http:\/\// }
+ #images.sort!
image_path_pwd='_sisu/image'
path_pod_conf="#{@env.path.processing}/sisupod/_sisu"
images_path_pod="#{path_pod_conf}/image"