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

fix comments and anchors

parent efbfe7a6
Branches
No related tags found
1 merge request!5Resolve "Parseur par type d'activité"
...@@ -87,7 +87,10 @@ def postEditMD(str): ...@@ -87,7 +87,10 @@ def postEditMD(str):
regexANCHOR = re.compile(r"@ANCHORSTART@(.)@(.*?)@ANCHOREND") regexANCHOR = re.compile(r"@ANCHORSTART@(.)@(.*?)@ANCHOREND")
str = regexANCHOR.sub(r"<span commentaireInfoId='\1'>\2</span>", str) str = regexANCHOR.sub(r"<span commentaireInfoId='\1'>\2</span>", str)
# For the comments themselves it is done in activite.rq # For the comments themselves
if '@COMMENTIDSTART' in str :
str = str.replace('@COMMENTIDSTART@','<div class="commentaireInfo" id="').replace('@COMMENTIDEND','">') + '</div>'
################################################### ###################################################
......
...@@ -17,7 +17,8 @@ template mt:activite(?act) { ...@@ -17,7 +17,8 @@ template mt:activite(?act) {
'<div class="commentaireInfoGroup" hidden="True">' st:nl() '<div class="commentaireInfoGroup" hidden="True">' st:nl()
group { group {
concat(replace(replace(?info_comment,'@COMMENTIDSTART@','<div class="commentaireInfo" id="'),'@COMMENTIDEND','">'),'</div>') '<div class="commentaireInfo">' st:nl()
?info_comment
'</div>' st:nl() '</div>' st:nl()
} }
'</div>' st:nl() '</div>' st:nl()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment