style fixes

This commit is contained in:
Guilhem Fauré 2023-05-11 14:31:08 +02:00
parent 65e9f0a67b
commit d8b7a1b562
2 changed files with 3 additions and 3 deletions

View File

@ -62,8 +62,8 @@ class metadata:
def get_starting(self):
return (
# f"{self.caption}\n" if len(self.caption) > 0 else "" + f"# {self.title}\n"
f"{self.caption}\n"
if len(self.caption) > 0
f"{self.caption}\n\n***\n"
if len(self.caption) > 0 and self.caption != " "
else ""
)

View File

@ -48,7 +48,7 @@ for exported in range(nbToExport):
mkdir(articleDir)
with open("{}/index.md".format(articleDir), "w") as f:
f.write(
"{}\n\n{}\n{}\n{}".format(
"{}\n{}\n{}\n{}".format(
meta.get_frontmatter(),
meta.get_starting(),
convert(article.texte),