1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-09-15 09:40:12 +02:00

Undo utf-8 text wrap workaround

This was added to fix unicode support in Python2. No longer needed in
Python3.
This commit is contained in:
Daniel Martí 2016-01-10 18:35:06 +01:00
parent 3371aa2116
commit d4f806d757

View File

@ -530,10 +530,10 @@ class DescriptionFormatter:
self.state = self.stNONE
whole_para = ' '.join(self.para_lines)
self.addtext(whole_para)
wrapped = textwrap.fill(whole_para.decode('utf-8'), 80,
wrapped = textwrap.fill(whole_para, 80,
break_long_words=False,
break_on_hyphens=False)
self.text.write(wrapped.encode('utf-8'))
self.text.write(wrapped)
self.html.write('</p>')
del self.para_lines[:]