Closed Carreau closed 2 years ago
note that
.. seealso::
- :doc:`numpy-for-matlab-users`
+ :doc:`numpy-for-matlab-users`
Fixes it as well, and so does adding trailing space on other blanks lines like the line just above see-also
I'm not sure this is intended, and a "it should be consistently indented 3/4 spaces" is a valid answer,
Thanks for reporting! I think this is a bug with the stack that keeps track of indentation levels
probably it shouldn't be +1, but the actual indentation level of the block, or maybe there is a dedent missing.
I'm on vacations now, so I'll put some time to look at the bugs in the next days :D
No worries, at some point I should also delve into tree sitter and understand how it works, so that I can submit patches here directly when I encounter issues.
On Mon, Dec 20, 2021, 16:47 Santos Gallegos @.***> wrote:
Thanks for reporting! I think this is a bug with the stack that keeps track of indentation levels
probably it shouldn't be +1, but the actual indentation level of the block, or maybe there is a dedent missing.
I'm on vacations now, so I'll put some time to look at the bugs in the next days :D
— Reply to this email directly, view it on GitHub https://github.com/stsewd/tree-sitter-rst/issues/21#issuecomment-998043321, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACR5T34NUNQUER5BLDFUZTUR5FYXANCNFSM5JI7GL3A . You are receiving this because you authored the thread.Message ID: @.***>
Take the following that have no trailing whitespace.
It parses to
at 1 trailing whitespace after the first literal block:
And it parses properly.
Note: taken from there https://numpy.org/doc/stable/user/quickstart.html
https://user-images.githubusercontent.com/335567/144559626-0b1aeb7f-968d-4be3-99f3-9859f6e35abd.mov