Hello,

I hope this is the right place to post.

I noticed this behavior in the current runtime/indent/rst.vim

<test.rst>
1. Sometimes I find that I write long sentences without having any idea when
   they will finish or what they are for.

   1. Sometimes I find that I write long sentences without having any idea when
         they will finish or what they are for.
</test.rst>

The problem is the extra indentation on the final line of the test.rst
file. I think this is because the current code does not strip the
preceding spaces before calculating the indent, and the attached patch
is the right fix.

Is that right?  Is there somewhere I should be putting tests for the
correct behavior?

Thanks a lot,

Matthew

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Attachment: vim_rst.patch
Description: Binary data

Raspunde prin e-mail lui