summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--www-apps/pyblosxom-plugins/files/getstamps.py2
-rw-r--r--www-apps/pyblosxom-plugins/files/rss2renderer.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/www-apps/pyblosxom-plugins/files/getstamps.py b/www-apps/pyblosxom-plugins/files/getstamps.py
index 64ec15a..6c2164e 100644
--- a/www-apps/pyblosxom-plugins/files/getstamps.py
+++ b/www-apps/pyblosxom-plugins/files/getstamps.py
@@ -41,7 +41,7 @@ def recurse(so_far):
thisfile = open(filepath,'r')
thisdate = getdate (thisfile)
if thisdate:
- OutFile.write("%s %s\n" % (thisdate, filepath[2:]))
+ OutFile.write("%s %s\n" % (thisdate, filepath[2:-5]))
continue
if __name__ == "__main__":
diff --git a/www-apps/pyblosxom-plugins/files/rss2renderer.py b/www-apps/pyblosxom-plugins/files/rss2renderer.py
index ff73c64..9945798 100644
--- a/www-apps/pyblosxom-plugins/files/rss2renderer.py
+++ b/www-apps/pyblosxom-plugins/files/rss2renderer.py
@@ -214,7 +214,7 @@ class RSS2Renderer(RendererBase):
# and assumes the data is ascii (which is wrong).
text = self._doc.toxml()
if self._config.has_key("blog_encoding"):
- text = "<?xml version=\"1.0\" encoding=\"%s\" ?>" % self._config["blog_encoding"] + text[text.find("\n"):]
+ text = "<?xml version=\"1.0\" encoding=\"%s\" ?>" % self._config["blog_encoding"] + text[text.find("<rss"):]
self.write(text)