diff options
author | Ralph Amissah <ralph@amissah.com> | 2010-10-08 11:41:03 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2010-10-08 11:41:12 -0400 |
commit | 50137a3afe66bc2f3604e3495a4290fd04348489 (patch) | |
tree | 9bd01bb2e2cafdce48684682c9eced6f03d6dc02 /lib | |
parent | html (html_tune) scaling of images, fix (+changelog) (diff) |
epub (epub_tune) scaling of images, fix (+changelog)
(requested fix)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/sisu/v2/epub_tune.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sisu/v2/epub_tune.rb b/lib/sisu/v2/epub_tune.rb index 83e718aa..e0c1e029 100644 --- a/lib/sisu/v2/epub_tune.rb +++ b/lib/sisu/v2/epub_tune.rb @@ -269,8 +269,8 @@ module SiSU_EPUB_Tune m,u=/#{Mx[:lnk_o]}(.+?)#{Mx[:lnk_c]}(image)/.match(word).captures end case m - when /\.png|\.jpg|\.gif|c=|\d+x\d+/ - w,h=/(\d+)x(\d+)/.match(m).captures if m =~/\d+x\d+/ + when /\.png|\.jpg|\.gif|c=|\s\d+x\d+/ + w,h=/\s(\d+)x(\d+)/.match(m).captures if m =~/\s\d+x\d+/ w=%{width="#{w}"} if w h=%{height="#{h}"} if h c=m[/"(.+?)"/m,1] |