mirror of
https://gitlab.com/openlp/documentation.git
synced 2024-12-22 04:22:49 +00:00
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
Block a user