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

enlever images d'écouteurs et ---

parent 9bf90aa0
Branches
No related tags found
No related merge requests found
......@@ -76,7 +76,11 @@ def postEditMD(str1):
###################################################
str1 = str1.replace(r"\_","_").replace(r" - ","\n- ").replace(r"| --- |", "").replace(r"|","")
str1 = str1.replace("Ecoutez","Écoutez").replace("Ecouter","Écouter").replace("Enoncés","Énoncés").replace(r"A l'oral",r"À l'oral").replace("Enoncé","Énoncé").replace("A un bout","À un bout").replace("A l","À l").replace("Vous vous êtes trompé","Vous vous trompez").replace("Pas d'accord","Vous vous trompez")
#str1 = str1.replace(r'<img class="inlineImage" src="/macao-hugo/media/ecouteur_macao.png" id="ecouteur_macao.png"/>', '')
#str1 = str1.replace(r'Écoutez et complétez :', '')
regexEcouteurs = re.compile(r"@IMAGESTART.*?ecouteur_macao.*?@IMAGEEND")
str1 = regexEcouteurs.sub(r"", str1)
......@@ -146,7 +150,7 @@ Pour vous réécouter, cliquez sur la flèche
noire.""","")
str1 = str1.replace("hauts-parleurs","flèches")
str1 = str1.replace('\n<img class="inlineImage"','<img class="inlineImage"')
str1 = str1.replace('\n --- \n','')
return(str1, commentaireInfo_md)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment