From: Daniel Martí Date: Fri, 2 Jan 2015 23:08:21 +0000 (+0100) Subject: Plaintext descriptions are no longer needed X-Git-Tag: 0.4.0~177 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=526813eae61c87e3c3662cfa6638a2ba3c698262;p=fdroidserver.git Plaintext descriptions are no longer needed --- diff --git a/fdroidserver/metadata.py b/fdroidserver/metadata.py index 11017122..2e29cd79 100644 --- a/fdroidserver/metadata.py +++ b/fdroidserver/metadata.py @@ -241,7 +241,7 @@ def check_metadata(info): # Formatter for descriptions. Create an instance, and call parseline() with # each line of the description source from the metadata. At the end, call -# end() and then text_plain, text_wiki and text_html will contain the result. +# end() and then text_wiki and text_html will contain the result. class DescriptionFormatter: stNONE = 0 stPARA = 1 @@ -250,7 +250,6 @@ class DescriptionFormatter: bold = False ital = False state = stNONE - text_plain = '' text_wiki = '' text_html = '' linkResolver = None @@ -269,7 +268,6 @@ class DescriptionFormatter: self.endol() def endpara(self): - self.text_plain += '\n' self.text_html += '

' self.state = self.stNONE @@ -349,7 +347,6 @@ class DescriptionFormatter: def addtext(self, txt): p, h = self.linkify(txt) - self.text_plain += p self.text_html += h def parseline(self, line): @@ -362,7 +359,6 @@ class DescriptionFormatter: self.text_html += '