I have encountered a bug where the lineno options inside the NeedsInfoType is offset if there is an rst_prolog specified that isn't empty.
The offset seems to be exactly the lines of the rst_prolog + 1.
A quick fix if you need it (for example in location of warnigns) is to count the rst_prolog newlines add 1 and subtract that from the lineno.
Kind of like this: correct_line_nr = int(need['lineno']) - rst_prolog_len
I have encountered a bug where the
linenooptions inside theNeedsInfoTypeis offset if there is an rst_prolog specified that isn't empty.The offset seems to be exactly the lines of the rst_prolog + 1.
A quick fix if you need it (for example in location of warnigns) is to count the rst_prolog newlines add 1 and subtract that from the lineno.
Kind of like this:
correct_line_nr = int(need['lineno']) - rst_prolog_len