aboutsummaryrefslogtreecommitdiffstats
path: root/blogthon.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'blogthon.cgi')
-rwxr-xr-xblogthon.cgi7
1 files changed, 5 insertions, 2 deletions
diff --git a/blogthon.cgi b/blogthon.cgi
index 264cd54..a8e05df 100755
--- a/blogthon.cgi
+++ b/blogthon.cgi
@@ -30,7 +30,7 @@ no_break = re.compile("^\s*(<ul|</ul>|<li|</li>|<ol|</ol>|<table|</table>|<tr|</
line_start_hyphen = re.compile("^-.*$")
line_start_plus = re.compile("^\+.*$")
-tab = "\t"
+tab = " "
def generate_uuid(string):
string_md5sum = md5(string).hexdigest()
@@ -56,7 +56,10 @@ def document_header(string):
if string == "html":
print "Content-type: text/html\n"
print "<!DOCTYPE html>"
- print "<html lang=\"" + language + "\">"
+ try:
+ print "<html lang=\"" + language + "\">"
+ except NameError:
+ print "<html lang=\"en\">"
if string == "atom":
print "Content-type: application/atom+xml\n"
print "<?xml version=\"1.0\" encoding=\"utf-8\"?>"