aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcedricbonhomme <devnull@localhost>2011-08-25 22:17:31 +0200
committercedricbonhomme <devnull@localhost>2011-08-25 22:17:31 +0200
commitaa135653e325dc596c56e62aae574a4eea5ae373 (patch)
tree8c35608ff4b58b513b9e22382fdfa47030fcea6a
parentMinor improvement of the control script (test if there is an argument). (diff)
downloadnewspipe-aa135653e325dc596c56e62aae574a4eea5ae373.tar.gz
newspipe-aa135653e325dc596c56e62aae574a4eea5ae373.tar.bz2
newspipe-aa135653e325dc596c56e62aae574a4eea5ae373.zip
HTML tags between <code> tags are now escaped by a regular expression.
-rwxr-xr-xcss/style.css3
-rwxr-xr-xfeedgetter.py2
-rwxr-xr-xpyAggr3g470r.py6
3 files changed, 9 insertions, 2 deletions
diff --git a/css/style.css b/css/style.css
index ebb571a0..5f9574e7 100755
--- a/css/style.css
+++ b/css/style.css
@@ -14,7 +14,8 @@ body {
}
code, pre {
- font-size: 100%;
+ font: 400 0.85em Cambria, Georgia, "Trebuchet MS", Verdana, sans-serif, Fixed;
+ white-space:pre-wrap;
}
img {
diff --git a/feedgetter.py b/feedgetter.py
index f60286e7..9e65e385 100755
--- a/feedgetter.py
+++ b/feedgetter.py
@@ -135,7 +135,7 @@ class FeedGetter(object):
article_title = str(BeautifulSoup(article.title))
try:
- post_date = datetime(*article.updated_parsed[:6])
+ post_date = datetime(*article.updated_parsed[:6])
except:
post_date = datetime(*article.published_parsed[:6])
diff --git a/pyAggr3g470r.py b/pyAggr3g470r.py
index c79f3059..b6ecb8d7 100755
--- a/pyAggr3g470r.py
+++ b/pyAggr3g470r.py
@@ -460,6 +460,12 @@ class Root:
# Description (full content) of the article
description = article.article_description
if description:
+ p = re.compile(r'<code><')
+ q = re.compile(r'></code>')
+
+ description = p.sub('<code>&lt;', description)
+ description = q.sub('&gt;</code>', description)
+
html += description + "\n<br /><br /><br />"
else:
html += "No description available.\n<br /><br /><br />"
bgstack15