15 Aug
2001
15 Aug
'01
2:12 p.m.
ksmith@99hats.com wrote:
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))
Did you assign the new declaration to the class? as in: HTML.ul = ul That's a (if not the) crutial step. -- | Casey Duncan | Kaivo, Inc. | cduncan@kaivo.com `------------------>