1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-04 14:30:11 +01:00

metadata: don't break words nor on hyphens

This commit is contained in:
Daniel Martí 2015-09-11 22:52:50 -07:00
parent df9b044a3b
commit fb23b2cff4

View File

@ -288,7 +288,9 @@ class DescriptionFormatter:
self.state = self.stNONE
whole_para = ' '.join(self.para_lines)
self.addtext(whole_para)
self.text_txt += textwrap.fill(whole_para, 80) + '\n\n'
self.text_txt += textwrap.fill(whole_para, 80,
break_long_words=False,
break_on_hyphens=False) + '\n\n'
del self.para_lines[:]
def endul(self):