Fix typogrifying objects without title

This fixes my use case where I use `readers.read_file` from within plugin to load something that is neither a page nor an article.
This commit is contained in:
Marcin Kurczewski 2016-05-28 19:31:28 +02:00 committed by rr-
commit 12c72d3e19

View file

@ -545,6 +545,8 @@ class Readers(FileStampDataCacher):
if content:
content = typogrify_wrapper(content)
if 'title' in metadata:
metadata['title'] = typogrify_wrapper(metadata['title'])
if 'summary' in metadata: