Merge pull request #1293 from jeanlauliac/typogrify-summary

Apply Typogrify to article summary
This commit is contained in:
Justin Mayer 2014-03-30 12:08:05 -07:00
commit 8ec958fb35
3 changed files with 33 additions and 5 deletions

View file

@ -463,10 +463,13 @@ class Readers(object):
find_empty_alt(content, path)
# eventually filter the content with typogrify if asked so
if content and self.settings['TYPOGRIFY']:
if self.settings['TYPOGRIFY']:
from typogrify.filters import typogrify
content = typogrify(content)
metadata['title'] = typogrify(metadata['title'])
if content:
content = typogrify(content)
metadata['title'] = typogrify(metadata['title'])
if 'summary' in metadata:
metadata['summary'] = typogrify(metadata['summary'])
if context_signal:
logger.debug('signal {}.send({}, <metadata>)'.format(