aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Ritter <xeno@goliath.thehappy.de>2009-03-09 02:13:53 +0100
committerStefan Ritter <xeno@goliath.thehappy.de>2009-03-09 02:13:53 +0100
commit1649dab5479f43fca1829c0a82b8530d724e8862 (patch)
tree7d202bca556a24331d19a35d86b2329be247e530
parentaa2d5186f6f7566aae139876f253694aed50ef8d (diff)
XHTML:
* Switched from Strict to Transitional... we DO want to use the target tag! * Fixed some XHTML errors
-rwxr-xr-xblogthon.cgi14
1 files changed, 7 insertions, 7 deletions
diff --git a/blogthon.cgi b/blogthon.cgi
index 8c5d0aa..09e6112 100755
--- a/blogthon.cgi
+++ b/blogthon.cgi
@@ -76,8 +76,8 @@ if cname and ctext and ctitle:
content.close()
print 'Content-type: text/html\n'
-print '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"'
-print ' "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">'
+print '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"'
+print ' "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'
print '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">'
print ' <head>'
print ' <title>' + blog_title + '</title>'
@@ -145,7 +145,7 @@ if linklist == "True":
content = open("linklist", "r")
for line in content:
if not line.strip() is "":
- print ' &nbsp;<a href=' + line.split(" ")[0] + ' target=_blank>' + line.split(" ", 1)[1].strip() + '</a>&nbsp;<br />'
+ print ' &nbsp;<a href="' + line.split(" ")[0] + '" target="_blank">' + line.split(" ", 1)[1].strip() + '</a>&nbsp;<br />'
content.close()
print ' </div>'
@@ -177,7 +177,7 @@ else: # Show regular entry
print ' <div class="entrytitle"><a href="?p=' + title + '" class="entrytitle">' + title + ' <small>(' + date + ')</small></a></div>'
else: # ... or not
print ' <div class="entrytitle">' + title + ' <small>(' + date + ')</small></div>'
- print ' <div class="entry"><p>'
+ print ' <div class="entry">'
for line in content:
print ' ' + line.strip() + '<br />'
@@ -213,7 +213,7 @@ else: # Show regular entry
if not comments_file and not post_display:
print ' <div class="comment">'
print ' <ul><li><a href="?p=' + title + '" class="comment">no comments</a></li></ul>'
- print ' </div><br />'
+ print ' </div>'
elif comments_file and not post_display:
comments_content = open(comments_file[0], "r")
comments_counter = 0
@@ -221,10 +221,10 @@ else: # Show regular entry
if line.split(".", 1)[0] == "-": comments_counter += 1
print ' <div class="comment">'
print ' <ul><li><a href="?p=' + title + '" class="comment">comments (' + str(comments_counter) + ')</a></li></ul>'
- print ' </div><br />'
+ print ' </div>'
comments_content.close()
- print ' </p></div>'
+ print ' </div>'
print ' <br /><br />'
content.close()
entry_counter += 1