Commit 4f6493be authored by BERTHAUT Florent's avatar BERTHAUT Florent
Browse files

Removed extra spaces

parent b955fb2d
No preview for this file type
......@@ -85,19 +85,24 @@ function writeFilteredFicheToStr(guide, f) {
const empty = /\s*/;
//header
guide.str +="<div custom-style='Page Break'>\n";
guide.str += "LEA "+f["Année"]+" "+f["Parcours"]+" S"+String(f["Semestre"]).trim();
guide.str += "</div>\n";
//guide.str +="<div custom-style='Page Break'> \n";
//guide.str += "</div>\n";
//guide.str += "LEA "+f["Année"]+" "+f["Parcours"]+" S"+String(f["Semestre"]).trim();
for(let destField of parcFilt.keys()) {
guide.str +="<p>\n";
//guide.str +="<p>\n";
guide.str += "<span custom-style='Paragraph Title'>"+destField+": </span> ";
//guide.str += destField+" ";
for(let origField of parcFilt.get(destField)) {
guide.str += f[origField]+" ";
if(!String(f[origField]).includes("</p>")) {
guide.str +="<br/>\n";
}
}
guide.str +="</p>\n";
}
guide.str +="<div custom-style='Page Break'> \n";
guide.str += "<br/> </div>\n";
}
function writeFicheToStr(guide, f) {
......@@ -198,6 +203,7 @@ function saveAllToDocs() {
//Transfrom markdown to doc/odt
let commandODT = "pandoc -t odt+smart ";
commandODT+=" --lua-filter src/pagebreak.lua ";
commandODT+=" --lua-filter src/odt-custom-styles.lua ";
commandODT+=" -f markdown "+guideFileName+".md ";
commandODT+=" --reference-doc='input/reference.odt' ";
......
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