From 693dee00aed2fdb6e07148bd91845c93d933e9fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guilhem=20Faur=C3=A9?= Date: Thu, 25 May 2023 17:21:04 +0200 Subject: [PATCH] fix double yaml encoding --- spip2md/spipobjects.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spip2md/spipobjects.py b/spip2md/spipobjects.py index beb2bd3..752a3bd 100644 --- a/spip2md/spipobjects.py +++ b/spip2md/spipobjects.py @@ -244,9 +244,9 @@ class Article(SpipObject, SpipArticles): "spip_id_rubrique": self.id_rubrique, } if append is not None: - return dump(super().frontmatter(meta | append), allow_unicode=True) + return super().frontmatter(meta | append) else: - return dump(super().frontmatter(meta), allow_unicode=True) + return super().frontmatter(meta) def content(self) -> str: body: str = super().content() @@ -292,9 +292,9 @@ class Rubrique(SpipObject, SpipRubriques): "spip_profondeur": self.profondeur, } if append is not None: - return dump(super().frontmatter(meta | append), allow_unicode=True) + return super().frontmatter(meta | append) else: - return dump(super().frontmatter(meta), allow_unicode=True) + return super().frontmatter(meta) def write_tree(self, parent_dir: str, index: int, total: int): self.begin_message(index, total, int(self.profondeur))