[go: up one dir, main page]

Menu

#299 Emacs rst-mode.el mismatches roles and fields

open
emacs mode (15)
8
2020-03-03
2016-10-26
Lele Gaifax
No

In the Emacs rst-mode, the fld-tag regexp should be more strict to avoid mismatches with reST roles.

In the following paragraph, when auto-fill breaks the second line, the third should start at column 0, not 7:

Lorem ipsum dolor sit amet, consectetur adipisicing elit
:other:`something` sed do eiusmod tempor incididunt ut
       this is wrong

In other words, the following ert-test fails:

    (should (ert-equal-buffer
         (indent-for-tab)
         "
Lorem ipsum dolor sit amet, consectetur adipisicing elit
:other:`something` sed do eiusmod tempor incididunt ut
\^@"
         "
Lorem ipsum dolor sit amet, consectetur adipisicing elit
:other:`something` sed do eiusmod tempor incididunt ut
\^@"
         ))

Discussion

  • Stefan Merten

    Stefan Merten - 2016-10-29
    • assigned_to: Stefan Merten
    • Priority: 5 --> 8
     
  • Stefan Merten

    Stefan Merten - 2016-10-29

    Thanks for drilling down. However, it happens only in rare cases so I'll fix it not immediately.

     

Log in to post a comment.