mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-09-18 19:20:08 +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:
parent
3371aa2116
commit
d4f806d757
@ -530,10 +530,10 @@ class DescriptionFormatter:
|
|||||||
self.state = self.stNONE
|
self.state = self.stNONE
|
||||||
whole_para = ' '.join(self.para_lines)
|
whole_para = ' '.join(self.para_lines)
|
||||||
self.addtext(whole_para)
|
self.addtext(whole_para)
|
||||||
wrapped = textwrap.fill(whole_para.decode('utf-8'), 80,
|
wrapped = textwrap.fill(whole_para, 80,
|
||||||
break_long_words=False,
|
break_long_words=False,
|
||||||
break_on_hyphens=False)
|
break_on_hyphens=False)
|
||||||
self.text.write(wrapped.encode('utf-8'))
|
self.text.write(wrapped)
|
||||||
self.html.write('</p>')
|
self.html.write('</p>')
|
||||||
del self.para_lines[:]
|
del self.para_lines[:]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user