From a71302c5ed550de108ce6280c4030a34ea274bac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guilhem=20Faur=C3=A9?= Date: Wed, 24 May 2023 12:12:13 +0200 Subject: [PATCH] fix missing body --- spip2md/spipobjects.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spip2md/spipobjects.py b/spip2md/spipobjects.py index d6ba85d..52ae1a0 100644 --- a/spip2md/spipobjects.py +++ b/spip2md/spipobjects.py @@ -99,7 +99,7 @@ class Article(SpipArticles): # If there is a text, add the text preceded by two line breaks if len(self.texte) > 0: # Remove remaining HTML after & append to body - body += "\n\n" + body += "\n\n" + self.texte # Same with an "extra" section if len(self.extra) > 0: body += "\n\n# EXTRA\n\n" + self.extra @@ -173,7 +173,7 @@ class Rubrique(SpipRubriques): # If there is a text, add the text preceded by two line breaks if len(self.texte) > 0: # Remove remaining HTML after & append to body - body += "\n\n" + body += "\n\n" + self.texte # Same with an "extra" section if len(self.extra) > 0: body += "\n\n# EXTRA\n\n" + self.extra