diff options
author | Ralph Amissah <ralph@amissah.com> | 2010-03-10 16:44:12 -0500 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2010-03-10 16:44:12 -0500 |
commit | 750ea614a1870efc5d43670629f702a4660aca2b (patch) | |
tree | 5a47219c4080f51a30905c3095d45e44a1cda6b4 | |
parent | epub, html: make robust where missing param values (diff) |
texpdf_format, where image missing, escape image markup loop
-rw-r--r-- | lib/sisu/v2/texpdf_format.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sisu/v2/texpdf_format.rb b/lib/sisu/v2/texpdf_format.rb index 9847d092..aca5378e 100644 --- a/lib/sisu/v2/texpdf_format.rb +++ b/lib/sisu/v2/texpdf_format.rb @@ -492,8 +492,9 @@ module SiSU_TeX_Pdf hsp="\n{\\color{mywhite} .}&~\n" # ~ character for hardspace caption=(c ? "{\\\\\ \n\\begin{scriptsize}#{hsp*3}#{c}\\end{scriptsize}&}" : '') elsif images_hash[ps] =~/#{Mx[:lnk_o]}\s*(\S+\.?\.(?:png|jpg|gif))/m - tell=SiSU_Screen::Ansi.new(@md.cmd,%{document built without image: "#{$1}" as image dimensions not provided (& librmagick-ruby is not installed)?\n}) + tell=SiSU_Screen::Ansi.new(@md.cmd,%{document built without image: "#{$1}" as image dimensions not provided (either image not found or neither imagemagick nor graphicsmagick is installed)?\n}) tell.print_grey #unless @opt.cmd =~/q/ + images_hash[ps].gsub!(/#{Mx[:lnk_o]}\s*(\S+\.?\.(?:png|jpg|gif))/,'[image]') end if image #most images fc etc. #% clean up ! if @md.fns =~/\.(?:ssm\.)?sst$/ \ |