From 598d5fb9c8929682e5785a0ec19747a153ed9e48 Mon Sep 17 00:00:00 2001 From: Vincent Le Gallic Date: Sun, 23 Nov 2014 03:43:07 +0100 Subject: [PATCH] =?utf8?q?On=20fait=20le=20m=C3=A9nage=20en=20dumpant=20pa?= =?utf8?q?s=20des=20espaces?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- quotes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quotes.py b/quotes.py index 9685220..5c1a58e 100644 --- a/quotes.py +++ b/quotes.py @@ -69,8 +69,8 @@ class Quote(object): def full_str(self): """ Retourne une chaîne représentant la totalité des infos de la quote, tout en étant parsable et human-readable. """ - place = self.place if self.place else "" - quoter = self.quoter if self.quoter else "" + place = self.place if self.place and self.place.strip() != u"" else u"" + quoter = self.quoter if self.quoter and self.quoter.strip() != u"" else u"" return (u"%s %s | %s | %s" % (self.timestamp.strftime("%F_%T"), config.quote_template % self.__dict__ , place, quoter)).encode("utf-8") -- 2.39.2