Skip to content
Snippets Groups Projects
Commit 6a38885f authored by David Rouquet's avatar David Rouquet
Browse files

center images verticaly

parent c73cd366
1 merge request!5Resolve "Parseur par type d'activité"
...@@ -76,7 +76,7 @@ def postEditMD(str): ...@@ -76,7 +76,7 @@ def postEditMD(str):
regexIMG = re.compile(r"@IMAGESTART.*?@IMAGEEND") regexIMG = re.compile(r"@IMAGESTART.*?@IMAGEEND")
for imageElt in regexIMG.findall(str): for imageElt in regexIMG.findall(str):
imgFilename = imageElt.replace("@IMAGESTART","").replace("@IMAGEEND","").replace(r"\_","_") imgFilename = imageElt.replace("@IMAGESTART","").replace("@IMAGEEND","").replace(r"\_","_")
imgHtml = '<img src="/macao-hugo/media/'+imgFilename+'" id="'+imgFilename+'"/>' imgHtml = '<img style="vertical-align:middle;" src="/macao-hugo/media/'+imgFilename+'" id="'+imgFilename+'"/>'
str = str.replace(imageElt, imgHtml) str = str.replace(imageElt, imgHtml)
################################################### ###################################################
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment