mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix title of Sueddeutsche recipe and fix generation of MAN pages in unicode environments
This commit is contained in:
parent
fe7876189c
commit
e35acbf104
@ -54,6 +54,9 @@ def create_man_page(prog, parser):
|
|||||||
'http://calibre.kovidgoyal.net/user_manual',
|
'http://calibre.kovidgoyal.net/user_manual',
|
||||||
'.PP', '.B Created by '+__author__]
|
'.PP', '.B Created by '+__author__]
|
||||||
|
|
||||||
return bz2.compress('\n'.join(lines))
|
lines = [x if isinstance(x, unicode) else unicode(x, 'utf-8', 'replace') for
|
||||||
|
x in lines]
|
||||||
|
|
||||||
|
return bz2.compress((u'\n'.join(lines)).encode('utf-8'))
|
||||||
|
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ from calibre.web.feeds.news import BasicNewsRecipe
|
|||||||
|
|
||||||
class Sueddeutsche(BasicNewsRecipe):
|
class Sueddeutsche(BasicNewsRecipe):
|
||||||
|
|
||||||
title = u'S\xc3\xbcddeutsche'
|
title = u'S\xfcddeutsche'
|
||||||
description = 'News from Germany'
|
description = 'News from Germany'
|
||||||
__author__ = 'Oliver Niesner'
|
__author__ = 'Oliver Niesner'
|
||||||
use_embedded_content = False
|
use_embedded_content = False
|
||||||
|
Loading…
x
Reference in New Issue
Block a user