aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2010-10-08 11:39:51 -0400
committerRalph Amissah <ralph@amissah.com>2010-10-08 11:39:58 -0400
commitbbcd934bd6b3ca45816a26d8a27dd917caa29f2d (patch)
tree382fb2c2cd6c2c8f716233a9bb35238ad84e8e30 /lib
parentodf:odt, incorporation and scaling of images, fix (+changelog) (diff)
html (html_tune) scaling of images, fix (+changelog)
(requested fix)
Diffstat (limited to 'lib')
-rw-r--r--lib/sisu/v2/html_tune.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sisu/v2/html_tune.rb b/lib/sisu/v2/html_tune.rb
index d5f3f35e..f4ad532f 100644
--- a/lib/sisu/v2/html_tune.rb
+++ b/lib/sisu/v2/html_tune.rb
@@ -267,8 +267,8 @@ module SiSU_HTML_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]