aboutsummaryrefslogtreecommitdiff
path: root/source/pyAggr3g470r.py
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-04-03 08:09:34 +0200
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-04-03 08:09:34 +0200
commite86c287d14675ea35236e1685880c7bc55353d0f (patch)
tree5477820389a55be96798daf7d0b66680c7fa2fe9 /source/pyAggr3g470r.py
parentChanged the message whe BeautifulSoup fails to sanitize the description of th... (diff)
downloadnewspipe-e86c287d14675ea35236e1685880c7bc55353d0f.tar.gz
newspipe-e86c287d14675ea35236e1685880c7bc55353d0f.tar.bz2
newspipe-e86c287d14675ea35236e1685880c7bc55353d0f.zip
Removed some useless regular expression.
Diffstat (limited to 'source/pyAggr3g470r.py')
-rwxr-xr-xsource/pyAggr3g470r.py10
1 files changed, 3 insertions, 7 deletions
diff --git a/source/pyAggr3g470r.py b/source/pyAggr3g470r.py
index b12039d4..79181d68 100755
--- a/source/pyAggr3g470r.py
+++ b/source/pyAggr3g470r.py
@@ -216,14 +216,10 @@ class pyAggr3g470r(object):
description = utils.clear_string(article["article_content"])
else:
description = article["article_content"]
- if description:
- p = re.compile(r'<code><')
- q = re.compile(r'></code>')
- description = p.sub('<code>&lt;', description)
- description = q.sub('&gt;</code>', description)
- description = description + "\n<br /><br /><br />"
+ if description != "":
+ description += "\n<br />\n"
else:
- description += "No description available.\n<br /><br /><br />"
+ description = "<p>No description available.</p>\n<br />\n"
"""
# Generation of the QR Code for the current article
try:
bgstack15