summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Seguin <guillaume@segu.in>2010-07-21 17:39:35 -0400
committerGuillaume Seguin <guillaume@segu.in>2010-07-21 17:39:35 -0400
commitdce8ed5f1a916e224a5c95099c2c4ab5772702e5 (patch)
treeda72d65d793f6c63fe3b2908e420b24f3b651915
parenta7d4292b92c94e8f03452cf45b6b825b7eee66c1 (diff)
downloadblogit-dce8ed5f1a916e224a5c95099c2c4ab5772702e5.tar.gz
blogit-dce8ed5f1a916e224a5c95099c2c4ab5772702e5.tar.bz2
Change stylesheet name, simplify log parsing code
-rw-r--r--raw_produce6
1 files changed, 2 insertions, 4 deletions
diff --git a/raw_produce b/raw_produce
index 7f21de1..353f469 100644
--- a/raw_produce
+++ b/raw_produce
@@ -16,7 +16,7 @@ global_template = """
<head>
<title>%(title)s</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
- <link rel="stylesheet" href="style.css" type="text/css" />
+ <link rel="stylesheet" href="blogit-style.css" type="text/css" />
</head>
<body>
<h1>%(title)s</h1>
@@ -65,9 +65,7 @@ for k in range (10):
out, _ = p.communicate ()
if p.returncode != 0:
break
- out = out.rstrip ().rsplit ("\n", len (bits_list))
- while len (out) < len (bits_list):
- out.append ("")
+ out = out.split ("\n", len (bits_list))
bits = dict ([(bits_list[i], out[i]) for i in range (len (bits_list))])
bits["body"] = bits["body"].replace ("\n", "<br />")
posts.append (post_template % bits)