You are not logged in Log in Join
You are here: Home » Members » hewei » Zope RPMs for RedHat » Zope Product RPMs » Epoz » Epoz 0.8.1 PostTidy Patch » View Document

Log in
Name

Password

 

Epoz 0.8.1 PostTidy Patch

--- Epoz/Extensions/EpozPostTidy.py.0.8.1 2004-05-10 17:49:57.000000000 +0800
+++ Epoz/Extensions/EpozPostTidy.py 2004-05-11 14:20:09.000000000 +0800
@@ -25,6 +25,8 @@
# Internal Link?
if tag=="a" and key=="href":
value = self.getRelativeUrl(self.pageurl, value)
+ if tag=="img" and key=="src":
+ value = self.getRelativeUrl(self.pageurl, value)
attributes += ' %s="%s"' % (key,value)
self.res += "<%s%s>" % (tag, attributes)

@@ -44,7 +46,7 @@
self.res += "<%s%s />" % (tag, attributes)

def handle_data(self, data):
- self.res += data.strip()
+ self.res += data

def handle_charref(self, data):
self.res += "&%s;" % data