[egenix-users] Segmentation fault with mx.Tidy
M.-A. Lemburg
mal at egenix.com
Fri Aug 12 15:53:20 CEST 2005
Hamish Lawson wrote:
> The following program gives a segmentation fault.
>
> ====
> from mx.Tidy import tidy
> text = """Go <a href=""http://www.egenix.com/>here</a>"""
> nerrors, nwarnings, tidied_text, errors = tidy(text)
> ====
>
> It appears to get upset at the URL being outside the quotes.
>
> I'm using version 0.3.0 of mx.Tidy (from version 0.9.0 of
> mx-experimental) with Python 2.4 on Solaris 9 Sparc.
It appears to be fixed in our repository:
>>> from mx.Tidy import tidy
text = """Go <a href=""http://www.egenix.com/>here</a>"""
nerrors, nwarnings, tidied_text, errors = tidy(text)
>>> nerrors
0
>>> nwarnings
2
>>> tidied_text
'<!DOCTYPE html PUBLIC "-//W3C//DTD HTML
3.2//EN">\n<html>\n<head>\n<title></title>\n</head>\n<body>\nGo <a
href="">here</a>\n</body>\n</html>\n\n'
>>> errors
'line 1 column 1 - Warning: inserting missing \'title\' element\nline 1 column 5 - Warning: <a>
unknown attribute value "(null)"\n'
I guess it's time for another release :-)
--
Marc-Andre Lemburg
eGenix.com
Professional Python Services directly from the Source (#1, Aug 12 2005)
>>> Python/Zope Consulting and Support ... http://www.egenix.com/
>>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/
________________________________________________________________________
::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! ::::
More information about the egenix-users
mailing list