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 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
The text was updated successfully, but these errors were encountered:
I have encountered a bug where the
lineno
options inside theNeedsInfoType
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
The text was updated successfully, but these errors were encountered: