diff options
author | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2022-11-09 17:24:39 +0900 |
---|---|---|
committer | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2022-11-09 17:24:39 +0900 |
commit | f88e73b0387c65d6440a3ca2540e79d79c555b48 (patch) | |
tree | e18fb58fbadf6d80f111093e2f6363a4a36a107a | |
parent | fbbf13e2d6274c14b9d91d59248bb7d6f3833a84 (diff) | |
download | fead-f88e73b0387c65d6440a3ca2540e79d79c555b48.tar.gz |
Fix re.sub call
-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='…')) |