use crlf for competitors split

This commit is contained in:
Fabrice Lamant
2024-07-23 21:13:30 +02:00
parent 10987c742d
commit f426bea344
110 changed files with 11282 additions and 786 deletions

View File

@@ -135,9 +135,9 @@ const extractSportCalendar = async (sportKey) => {
// more than two, we put them in the description
competitors.forEach((competitor) => {
if (competitor.name !== getNOCName(competitor.noc)) {
event.DESCRIPTION += `\\n${getNOCFlag(competitor.noc)} ${competitor.name}`;
event.DESCRIPTION += `\r\n${getNOCFlag(competitor.noc)} ${competitor.name}`;
} else {
event.DESCRIPTION += `\\n${getNOCFlag(competitor.noc)} ${competitor.noc}`;
event.DESCRIPTION += `\r\n${getNOCFlag(competitor.noc)} ${competitor.noc}`;
}
});
}
@@ -175,7 +175,7 @@ const generateOutputPage = () => {
html.push("</table>");
const template = fs.readFileSync(`${__dirname}/template.html`, "utf-8");
const output = template.replace("{{calendars}}", html.join("\n"));
const output = template.replace("{{calendars}}", html.join("\r\n"));
fs.writeFileSync("docs/index.html", output);
postcss([autoprefixer, tailwindcss])