Commit 6fe5c84d authored by BERTHAUT Florent's avatar BERTHAUT Florent
Browse files

Remove extra <br/> in the fiches

parent 4f6493be
......@@ -93,9 +93,11 @@ function writeFilteredFicheToStr(guide, f) {
//guide.str +="<p>\n";
guide.str += "<span custom-style='Paragraph Title'>"+destField+": </span> ";
for(let origField of parcFilt.get(destField)) {
guide.str += f[origField]+" ";
let fieldText = f[origField];
fieldText = fieldText.replace(/<br \/>/g, "");
guide.str += fieldText+" ";
if(!String(f[origField]).includes("</p>")) {
if(!fieldText.includes("</p>")) {
guide.str +="<br/>\n";
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment