diff options
-rwxr-xr-x | css/style.css | 3 | ||||
-rwxr-xr-x | feedgetter.py | 2 | ||||
-rwxr-xr-x | pyAggr3g470r.py | 6 |
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><', description) + description = q.sub('></code>', description) + html += description + "\n<br /><br /><br />" else: html += "No description available.\n<br /><br /><br />" |