about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2022-11-09 17:24:39 +0900
committerNguyễn Gia Phong <mcsinyx@disroot.org>2022-11-09 17:24:39 +0900
commitf88e73b0387c65d6440a3ca2540e79d79c555b48 (patch)
treee18fb58fbadf6d80f111093e2f6363a4a36a107a /src
parentfbbf13e2d6274c14b9d91d59248bb7d6f3833a84 (diff)
downloadfead-f88e73b0387c65d6440a3ca2540e79d79c555b48.tar.gz
Fix re.sub call
Diffstat (limited to 'src')
-rwxr-xr-xsrc/fead.py2
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='…'))