Closed ronaldtse closed 6 years ago
Hm. Not all instances of node have lineno defined on them, it seems. Let me see if I can replicate this.
I can replicate it, and indeed, while all blocks have a lineno method, if their source_location attribute is not set, neither is their line number. (And I can't tell why a table's source_location attribute wouldn't be set in this case.)
As a mitigation, I'm going to give the current section title instead for all such warnings, wherever the line number is not available.
Done: Line number if available, else anchor of node, else current section title, else "??".
When running the RFCv2 backend, sometimes there are messages from lines like this:
However,
#{node.lineno}
is empty, so it is unclear which file / line the error is at. It seems that the node doesn't havelineno
andpath
set when it was parsed by theReader
.Any thoughts @opoudjis ?