aboutsummaryrefslogtreecommitdiff
path: root/source/pyAggr3g470r.py
diff options
context:
space:
mode:
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