Fixed the replacement.
This commit is contained in:
parent
7a1e3946d5
commit
15cbc88005
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue