fix double yaml encoding
This commit is contained in:
parent
6396a99e38
commit
693dee00ae
@ -244,9 +244,9 @@ class Article(SpipObject, SpipArticles):
|
|||||||
"spip_id_rubrique": self.id_rubrique,
|
"spip_id_rubrique": self.id_rubrique,
|
||||||
}
|
}
|
||||||
if append is not None:
|
if append is not None:
|
||||||
return dump(super().frontmatter(meta | append), allow_unicode=True)
|
return super().frontmatter(meta | append)
|
||||||
else:
|
else:
|
||||||
return dump(super().frontmatter(meta), allow_unicode=True)
|
return super().frontmatter(meta)
|
||||||
|
|
||||||
def content(self) -> str:
|
def content(self) -> str:
|
||||||
body: str = super().content()
|
body: str = super().content()
|
||||||
@ -292,9 +292,9 @@ class Rubrique(SpipObject, SpipRubriques):
|
|||||||
"spip_profondeur": self.profondeur,
|
"spip_profondeur": self.profondeur,
|
||||||
}
|
}
|
||||||
if append is not None:
|
if append is not None:
|
||||||
return dump(super().frontmatter(meta | append), allow_unicode=True)
|
return super().frontmatter(meta | append)
|
||||||
else:
|
else:
|
||||||
return dump(super().frontmatter(meta), allow_unicode=True)
|
return super().frontmatter(meta)
|
||||||
|
|
||||||
def write_tree(self, parent_dir: str, index: int, total: int):
|
def write_tree(self, parent_dir: str, index: int, total: int):
|
||||||
self.begin_message(index, total, int(self.profondeur))
|
self.begin_message(index, total, int(self.profondeur))
|
||||||
|
Loading…
Reference in New Issue
Block a user