diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-01-29 09:35:00 +0100 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-01-29 09:35:00 +0100 |
commit | 6bee4de915c116e74b498c57175d758a3fe3b54d (patch) | |
tree | 8bbc598a9a691ff5a3d23fa88b1f46631aae7ef9 | |
parent | HTML5 fragment identifier for #top. (diff) | |
download | newspipe-6bee4de915c116e74b498c57175d758a3fe3b54d.tar.gz newspipe-6bee4de915c116e74b498c57175d758a3fe3b54d.tar.bz2 newspipe-6bee4de915c116e74b498c57175d758a3fe3b54d.zip |
Fix some minor HTML issues for the webzine export (export.py).
-rw-r--r-- | source/export.py | 11 |
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 |