mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
...
This commit is contained in:
parent
e5074150a9
commit
4a69c3ae8a
@ -58,13 +58,13 @@ def serialize_recipe(urn, recipe_class):
|
||||
ns = 'no'
|
||||
if ns is True:
|
||||
ns = 'yes'
|
||||
return (' <recipe id="{id}" title={title} author={author} language={language}'
|
||||
' needs_subscription="{needs_subscription}" description={description}/>').format(**{
|
||||
'id' : str(urn),
|
||||
return (' <recipe id={id} title={title} author={author} language={language}'
|
||||
' needs_subscription={needs_subscription} description={description}/>').format(**{
|
||||
'id' : quoteattr(str(urn)),
|
||||
'title' : attr('title', _('Unknown')),
|
||||
'author' : attr('__author__', default_author),
|
||||
'language' : attr('language', 'und'),
|
||||
'needs_subscription' : ns,
|
||||
'needs_subscription' : quoteattr(ns),
|
||||
'description' : attr('description', '')
|
||||
})
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user