mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-09-11 23:23:27 +02:00
metadata: allow links spanning multiple lines
This allows for nicer text wrapping.
This commit is contained in:
parent
e6b14c8995
commit
223db1588b
@ -286,8 +286,9 @@ class DescriptionFormatter:
|
||||
def endpara(self):
|
||||
self.text_html += '</p>'
|
||||
self.state = self.stNONE
|
||||
self.text_txt += textwrap.fill(' '.join(self.para_lines), 80)
|
||||
self.text_txt += '\n\n'
|
||||
whole_para = ' '.join(self.para_lines)
|
||||
self.addtext(whole_para)
|
||||
self.text_txt += textwrap.fill(whole_para, 80) + '\n\n'
|
||||
del self.para_lines[:]
|
||||
|
||||
def endul(self):
|
||||
@ -402,7 +403,6 @@ class DescriptionFormatter:
|
||||
self.state = self.stPARA
|
||||
elif self.state == self.stPARA:
|
||||
self.text_html += ' '
|
||||
self.addtext(line)
|
||||
|
||||
def end(self):
|
||||
self.endcur()
|
||||
|
Loading…
Reference in New Issue
Block a user