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

fix some comments

parent 6a38885f
No related branches found
No related tags found
1 merge request!5Resolve "Parseur par type d'activité"
...@@ -48,7 +48,7 @@ def prepareHTMLforMD(str): ...@@ -48,7 +48,7 @@ def prepareHTMLforMD(str):
regexANCHOR= re.compile(r"<a class=\"STY_lienComt\" href=\"javascript:CRS_afficherDetail\('(.)'\)\" onclick=\"enrPosClic\(event,'.'\)\">(.*?)</a>") regexANCHOR= re.compile(r"<a class=\"STY_lienComt\" href=\"javascript:CRS_afficherDetail\('(.)'\)\" onclick=\"enrPosClic\(event,'.'\)\">(.*?)</a>")
str = regexANCHOR.sub(r"@ANCHORSTART@\1@\2@ANCHOREND", str) str = regexANCHOR.sub(r"@ANCHORSTART@\1@\2@ANCHOREND", str)
# Identify comments ids and add markups to identify them in the MD # Identify comments ids and add markups to identify them in the MD
regexCOMMENTID= re.compile(r"<div id=\"divCmt(.)\" onclick=\"SPE_clicDansBulle\(event,'.'\)\">")#(.*)</div>", re.MULTILINE) regexCOMMENTID= re.compile(r"<div id=\"divCmt(.)\" onclick=\"SPE_clicDansBulle\(event,'.*?'\)\">")#(.*)</div>", re.MULTILINE)
str = regexCOMMENTID.sub(r"@COMMENTIDSTART@\1@COMMENTIDEND", str) str = regexCOMMENTID.sub(r"@COMMENTIDSTART@\1@COMMENTIDEND", str)
return(str) return(str)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment