htmltest icon indicating copy to clipboard operation
htmltest copied to clipboard

Feature Request: emit line numbers

Open osterman opened this issue 7 years ago • 3 comments
trafficstars

First, this utility is awesome! Thanks for investing all the time to make it so powerful.

It would be helpful if the utility output line numbers within the file.

Thanks!

osterman avatar May 06 '18 18:05 osterman

Hi @osterman, thank you for your kind words!

The lack of line numbers, sadly, is not a careless omission. The library (golang's x/net/html) we are currently using for parsing HTML does not give us a clear path back from a node to its origin.

This issue will remain open, this is a feature that is missing, however it will require a direction and likely a large refactor for it to come about.

Ref #22

wjdp avatar May 06 '18 21:05 wjdp

Thanks @wjdp ! Makes sense.

osterman avatar May 10 '18 05:05 osterman

I really miss this feature...!

Would this code help? https://stackoverflow.com/a/34960550/1189711

I don't know enough of Go (yet) to handle this myself...

pgorod avatar Aug 21 '18 10:08 pgorod