strip newlines from descriptions in search results
This commit is contained in:
parent
46d9acd37e
commit
3bbf4c8a26
1 changed files with 1 additions and 1 deletions
|
|
@ -70,7 +70,7 @@ class RecipeListFormatter(PrettyFormatter):
|
||||||
result += 'prep time: %smin' % obj.preparation_time
|
result += 'prep time: %smin' % obj.preparation_time
|
||||||
if not empty(obj.short_description):
|
if not empty(obj.short_description):
|
||||||
result += 'description: %s\n' % obj.short_description
|
result += 'description: %s\n' % obj.short_description
|
||||||
return result
|
return result.strip()
|
||||||
|
|
||||||
|
|
||||||
class Cookboob(ReplApplication):
|
class Cookboob(ReplApplication):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue