Comment 2 for bug 1742121

Revision history for this message
scoder (scoder) wrote :

lxml can't do anything about this, since this would need to be handled in the parser of libxml2. Larger line numbers are stored only in text nodes, many of which are discarded (in fact, the most important ones) if whitespace nodes are removed.

Also, it could even be argued that line numbers are in fact undefined if the whitespace nodes that split the lines are removed during parsing.