Fixed the replacement.

This commit is contained in:
Raoul Snyman 2012-07-13 22:50:36 +02:00
parent 7a1e3946d5
commit 15cbc88005

View File

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