mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-09-11 15:13:27 +02:00
metadata: fix html paragraph tag regression
Spotted in fdroid/fdroidclient#422
This commit is contained in:
parent
d7d9e38ef7
commit
d07bf0754a
@ -284,13 +284,13 @@ class DescriptionFormatter:
|
||||
self.endol()
|
||||
|
||||
def endpara(self):
|
||||
self.text_html += '</p>'
|
||||
self.state = self.stNONE
|
||||
whole_para = ' '.join(self.para_lines)
|
||||
self.addtext(whole_para)
|
||||
self.text_txt += textwrap.fill(whole_para, 80,
|
||||
break_long_words=False,
|
||||
break_on_hyphens=False) + '\n\n'
|
||||
self.text_html += '</p>'
|
||||
del self.para_lines[:]
|
||||
|
||||
def endul(self):
|
||||
@ -403,8 +403,6 @@ class DescriptionFormatter:
|
||||
if self.state == self.stNONE:
|
||||
self.text_html += '<p>'
|
||||
self.state = self.stPARA
|
||||
elif self.state == self.stPARA:
|
||||
self.text_html += ' '
|
||||
|
||||
def end(self):
|
||||
self.endcur()
|
||||
|
Loading…
Reference in New Issue
Block a user