Patch to rst.py

Ok, I installed my blog 5 seconds ago and I've already needed to patch something.

Here's a patch to the reStructuredText formatter that allows it to skip the pyblosxom metadata lines if present:

--- rst.py.orig 2005-06-21 20:23:14.000000000 +0200
+++ rst.py  2005-11-23 18:11:34.982052768 +0100
@@ -65,8 +65,11 @@
 def readfile(filename, request):
     entryData = {}
     d = open(filename).read()
-    title = d.split('\n')[0]
-    d = d[len(title):]
+    (title, meta) = d.split('\n')[0:2]
+    skip = len(title) + 1
+    if meta[0] == '#':
+       skip += len(meta) + 1
+    d = d[skip:]
     body = parse(d)
     entryData = {'title': title,
                  'body': body}

btw, reStructuredText is bad for blogs: I had to fix this entry 3 times already to get it right :)