[lxml-dev] Possible bug

Bob Kline bkline at rksystems.com
Fri Mar 20 15:11:11 CET 2009


Stefan Behnel wrote:
> It's not really "no". It's just that this is a rare case and there is
> little one can do about it.

Well, you could do what I'm doing: collapse sequences of two or more 
hyphens to single hyphens, and drop leading and trailing hyphens (or 
prefix leading hyphens with a space and append a space to a trailing 
hyphen) in the comment text.

> But there's always space for better
> documentation - contributions very welcome.
>   

Excellent.  How about (following the sentence quoted earlier in this 
thread, beginning "It lets libxml2 try its best to return something 
usable ...."):

    The result, when serialized with etree.tostring(), will often (but
    not always) be a well-formed XML document.


-- 
Bob Kline
http://www.rksystems.com
mailto:bkline at rksystems.com



More information about the lxml-dev mailing list