diff options
Diffstat (limited to 'src')
-rwxr-xr-x | src/fead.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fead.py b/src/fead.py index d1ad794..6efbe11 100755 --- a/src/fead.py +++ b/src/fead.py @@ -197,7 +197,7 @@ def select(n, ads): def truncate(ad, summary_length): """Return ad with truncated summary, whose HTML tags a stripped.""" - return ad._replace(summary=shorten(HTML_TAG.sub(ad.summary, ''), + return ad._replace(summary=shorten(HTML_TAG.sub('', ad.summary), summary_length, placeholder='…')) |