diff --git a/blogthon.cgi b/blogthon.cgi
index 1a00590..47847ed 100755
--- a/blogthon.cgi
+++ b/blogthon.cgi
@@ -26,168 +26,228 @@ from glob import glob
from random import randint
# A wonderful place for doing some regexp ;)
-no_break = re.compile("^\s*(
|- |
|||| | | ).*$")
+no_break = re.compile("^\s*( |- |
|||| | | ).*$")
line_start_hyphen = re.compile("^-.*$")
-line_start_plus = re.compile("^\+.*$")
+line_start_plus = re.compile("^\+.*$")
tab = "\t"
def generate_uuid(string):
- string_md5sum = md5(string).hexdigest()
- string = str.join("-", (string_md5sum[0:8], string_md5sum[8:12], string_md5sum[12:16], string_md5sum[16:20], string_md5sum[20:32]))
- return string
+ string_md5sum = md5(string).hexdigest()
+ string = str.join("-", (string_md5sum[0:8], string_md5sum[8:12], string_md5sum[12:16], string_md5sum[16:20], string_md5sum[20:32]))
+ return string
def errorpage(string):
- document_header("xhtml-strict")
- print " Error!"
- print ""
- print tab + string
- print ""
- print " | |