diff options
author | Magnus Hagander | 2008-10-22 20:58:02 +0000 |
---|---|---|
committer | Magnus Hagander | 2008-10-22 20:58:02 +0000 |
commit | ec4838b24eda8045d10c08e1b3bd4bb220ce5f5f (patch) | |
tree | d3c337170f478531c1fc8cb8a8c9905714025d70 /planet/planethtml.py | |
parent | 494c6c3dffb366c9a42562d7c710100ee0772665 (diff) |
Use HTMLTidy and some attribute trickery to make output XHTML valid.
Change to XHTML Transitional, because that's really what it is.
Fix issue where [...] appendings weren't always rewritten to proper
HTML links in the HTML output.
git-svn-id: file:///Users/dpage/pgweb/svn-repo/trunk@2227 8f5c7a92-453e-0410-a47f-ad33c8a6b003
Diffstat (limited to 'planet/planethtml.py')
-rw-r--r-- | planet/planethtml.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/planet/planethtml.py b/planet/planethtml.py index 6fd14def..dff287d8 100644 --- a/planet/planethtml.py +++ b/planet/planethtml.py @@ -15,8 +15,8 @@ class PlanetHtml: def __init__(self): self.items = [] self.feeds = [] - self.str = """<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + self.str = """<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en" dir="ltr"> <head> <title>Planet PostgreSQL</title> @@ -46,7 +46,7 @@ class PlanetHtml: lastdate = None for post in self.items: if post[6].endswith('[...]'): - txt = post[6][:len(post[6])-4] + """<a href="%s">continue reading...</a>]""" % (post[1]) + txt = post[6][:len(post[6])-5] + """<p>[<a href="%s">continue reading...</a>]</p>""" % (post[1]) else: txt = post[6] |