mirror of
https://gitlab.com/openlp/documentation.git
synced 2024-12-22 12:32:48 +00:00
Fixed the replacement.
This commit is contained in:
parent
7a1e3946d5
commit
15cbc88005
@ -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')
|
||||||
|
Loading…
Reference in New Issue
Block a user