From 8a9962265ad42d0efcc529027af9e8082b062e2c Mon Sep 17 00:00:00 2001 From: Stefan Ritter Date: Wed, 30 Sep 2009 12:38:49 +0200 Subject: Fixed transitional/strict mismatch --- blogthon.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'blogthon.cgi') diff --git a/blogthon.cgi b/blogthon.cgi index 8f40193..c3a9c10 100755 --- a/blogthon.cgi +++ b/blogthon.cgi @@ -55,7 +55,7 @@ def document_header(string): if string == "xhtml-strict": print 'Content-type: text/html\n' print '' + print ' "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">' print '' if string == "atom": print 'Content-type: application/atom+xml\n' -- cgit v1.2.3 From 8d11662b5b6f8af73913ce6ba4e5e950881399e9 Mon Sep 17 00:00:00 2001 From: Stefan Ritter Date: Fri, 16 Oct 2009 16:49:24 +0200 Subject: Made two regexp more beautiful --- blogthon.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'blogthon.cgi') diff --git a/blogthon.cgi b/blogthon.cgi index c3a9c10..66d794e 100755 --- a/blogthon.cgi +++ b/blogthon.cgi @@ -454,14 +454,14 @@ else: notfirstline = 0 # Ugly fix for closing comment containers for line in comments_content: - if line.split(".", 1)[0] == "-": + if re.search("^-", line): if notfirstline == 1: print ' ' print ' ' notfirstline = 0; print '
' print '
' + line.split(".", 1)[1].strip() + '
' - elif line.split(".", 1)[0] == "+": + elif re.search("^\+", line): print '
' + line.split(".", 1)[1].strip() + '
' print '
' else: -- cgit v1.2.3