Hi, Which Zope verion are you using? Zope versions after... errr... I'm not sure, but perhaps somewhere in the 2.3 series.. stopped using "Classic" StructuredText code and started using StructuredTextNG code, although both are still present in the StructuredText directory. My fear is that you're attempting to patch the wrong class if you're using a more recent Zope. In either case, in general, you need to assign this function to a class (essentially turning it in to a method).. if you're using an older Zope (as perhaps evidenced by your question), this might go something like (after your import and function declaration): HTML.ul = ul That's it. ----- Original Message ----- From: <ksmith@99hats.com> To: <zope@zope.org> Sent: Tuesday, August 14, 2001 8:30 PM Subject: [Zope] Attempted hotfix to structured text
I'm trying to do a Hotfix to remove the the space between bulleted lists in structured text. Does anyone know why this isn't working as a Hotfix? Thanks, Kevin
__init__.py
""" Remove P tag from unordered lists"""
from StructuredText.StructuredText import HTML
def ul(self, before, p, after): """Save some space"""
if p: p="%s" % strip(ctag(p)) return ('%s<ul><li>%s\n%s\n</li></ul>\n' % (before,p,after))