Add new line at end of Markdown files

This commit is contained in:
Emmanuel 2024-12-05 23:48:46 +01:00
parent 0b9575c77c
commit 803602179d

View file

@ -344,7 +344,7 @@ async function exportLegiTexteToMarkdown(
# Codes juridiques français en Git et Markdown # Codes juridiques français en Git et Markdown
- [${codeTitle}](${codeDirName}) - [${codeTitle}](${codeDirName})
`, ` + "\n",
) )
await git.add({ await git.add({
dir: targetDir, dir: targetDir,
@ -463,7 +463,7 @@ async function generateGitDirectory(
###### ${articleTitle} ###### ${articleTitle}
${article.BLOC_TEXTUEL?.CONTENU} ${article.BLOC_TEXTUEL?.CONTENU}
`, ` + "\n",
) )
await git.add({ await git.add({
dir: context.targetDir, dir: context.targetDir,
@ -522,7 +522,7 @@ async function generateGitDirectory(
${"#".repeat(Math.min(depth, 6))} ${title} ${"#".repeat(Math.min(depth, 6))} ${title}
${readmeLinks.map(({ href, title }) => `- [${title}](${href})`).join("\n")} ${readmeLinks.map(({ href, title }) => `- [${title}](${href})`).join("\n")}
`, ` + "\n",
) )
await git.add({ await git.add({
dir: context.targetDir, dir: context.targetDir,