Closed
Description
If there are style tags in the html, they are removed from the html before the lexing process starts. This results in wrong line numbers for the tokens.
Usually this is no problem, but if there is an error in the html (e.g. tags are closed in a wrong order) and you try to find the error the wrong line number makes it more difficult.
imho there are two solutions:
- Replace the style content with new lines of the same number than they exists in the removed style contend
- Don't remove the style tags and their content. Just don't print it to the PDF.