You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’d like to connect the two so that WeasyPrint can do its own error reporting based on line numbers of HTML elements. It seems like the attribute should be set in etree_lxml.py, but I don’t know how to access the input stream from there.
Suggestions?
The text was updated successfully, but these errors were encountered:
Elements in lxml have a
sourceline
attribute, but it is alwaysNone
in trees parsed with html5lib.html5lib also appears to keep track of source line numbers for error messages.
I’d like to connect the two so that WeasyPrint can do its own error reporting based on line numbers of HTML elements. It seems like the attribute should be set in etree_lxml.py, but I don’t know how to access the input stream from there.
Suggestions?
The text was updated successfully, but these errors were encountered: