mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-06 23:40:29 +03: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
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue