Fixed the replacement.

This commit is contained in:
Raoul Snyman 2012-07-13 22:50:36 +02:00
parent 7a1e3946d5
commit 15cbc88005
1 changed files with 2 additions and 2 deletions

View File

@ -26,9 +26,9 @@ def adjust_image(match):
try:
width = int(match.group(1))
width = int(round(width * 2.4))
return str(width)
return ':width: %spx' % width
except:
return match.group(1)
return match.group(0)
def process_images(filename):
fd = open(filename, 'rb')