fix missing body
This commit is contained in:
parent
0568f54f29
commit
a71302c5ed
@ -99,7 +99,7 @@ class Article(SpipArticles):
|
|||||||
# If there is a text, add the text preceded by two line breaks
|
# If there is a text, add the text preceded by two line breaks
|
||||||
if len(self.texte) > 0:
|
if len(self.texte) > 0:
|
||||||
# Remove remaining HTML after & append to body
|
# Remove remaining HTML after & append to body
|
||||||
body += "\n\n"
|
body += "\n\n" + self.texte
|
||||||
# Same with an "extra" section
|
# Same with an "extra" section
|
||||||
if len(self.extra) > 0:
|
if len(self.extra) > 0:
|
||||||
body += "\n\n# EXTRA\n\n" + self.extra
|
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 there is a text, add the text preceded by two line breaks
|
||||||
if len(self.texte) > 0:
|
if len(self.texte) > 0:
|
||||||
# Remove remaining HTML after & append to body
|
# Remove remaining HTML after & append to body
|
||||||
body += "\n\n"
|
body += "\n\n" + self.texte
|
||||||
# Same with an "extra" section
|
# Same with an "extra" section
|
||||||
if len(self.extra) > 0:
|
if len(self.extra) > 0:
|
||||||
body += "\n\n# EXTRA\n\n" + self.extra
|
body += "\n\n# EXTRA\n\n" + self.extra
|
||||||
|
Loading…
Reference in New Issue
Block a user