aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-01-29 09:39:15 +0100
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-01-29 09:39:15 +0100
commit4574d0f02c3b62b05ec2ce6b020b71ea7851424d (patch)
tree064b44080b17a995a9ef631627ce3fdf05d55cdc /source
parentSome tests in templates... (diff)
parentFix some minor HTML issues for the webzine export (export.py). (diff)
downloadnewspipe-4574d0f02c3b62b05ec2ce6b020b71ea7851424d.tar.gz
newspipe-4574d0f02c3b62b05ec2ce6b020b71ea7851424d.tar.bz2
newspipe-4574d0f02c3b62b05ec2ce6b020b71ea7851424d.zip
Merging heads
Diffstat (limited to 'source')
-rw-r--r--source/export.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/source/export.py b/source/export.py
index b94187a8..8b72bfcc 100644
--- a/source/export.py
+++ b/source/export.py
@@ -41,10 +41,11 @@ import conf
import utils
HTML_HEADER = """<!DOCTYPE html>
+<html lang="en-US">
<head>
<title>pyAggr3g470r</title>
-<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
-<style type=text/css media=screen>
+<meta charset="utf-8"/>
+<style media="screen">
body{font:normal medium 'Gill Sans','Gill Sans MT',Verdana,sans-serif;margin:1.20em auto;width:80%;line-height:1.75}
blockquote{font-size:small;line-height:2.153846;margin:2.153846em 0;padding:0;font-style:oblique;border-left:1px dotted;margin-left:2.153846em;padding-left:2.153846em}
blockquote p{margin:2.153846em 0}
@@ -66,7 +67,9 @@ HTML_HEADER = """<!DOCTYPE html>
"""
HTML_FOOTER = """<hr />
-<p><a href="https://bitbucket.org/cedricbonhomme/pyaggr3g470r/">pyAggr3g470r</a> is under GPLv3 license.
+<p>This archive has been generated with
+<a href="https://bitbucket.org/cedricbonhomme/pyaggr3g470r/">pyAggr3g470r</a>.
+A software under GPLv3 license.
You are welcome to copy, modify or redistribute the source code according to the
<a href="http://www.gnu.org/licenses/gpl-3.0.txt">GPLv3</a> license.</p>
</body>
@@ -211,4 +214,4 @@ def export_pdf(feeds):
try:
pdf = pisa.CreatePDF(StringIO.StringIO(content), file(name, "wb"))
except:
- pass \ No newline at end of file
+ pass
bgstack15