// nettoyer le parsing des pragraphes if (debug) console.log('start cleanParagraphsParsing'); (function() { let labeurs = document.querySelectorAll('.labeur, .free'); for(let labeur of labeurs) { if (labeur.childNodes.length == 1) { labeur.innerHTML = '
' + labeur.innerHTML + '
'; } else { labeur.innerHTML = "" + labeur.innerHTML.replace("
", "");
}
// data align last split
if (labeur.innerHTML.includes('
')) {
if (labeur.childElementCount > 0) {
for (let j = 0; j < labeur.childElementCount; j++) {
let parts = labeur.children[j].innerHTML.split('
');
let newParts = parts.map(function(part) {
return `
${ part }
`; }); labeur.children[j].innerHTML = newParts.join(''); } } else { let parts = labeur.innerHTML.split('${ part }
`; }); labeur.innerHTML = newParts.join(''); } } } })(); if (debug) console.log('end cleanParagraphsParsing');