I have macros set up to create environments, and keyboard shortchuts to use them. Often, there will be an extra indent on the \end line. For instance, when using the macro
\begin{equation*} %| \end{equation*}
(the Normal type of macro, although the Environment type of macro seems to have the same issue), the result is often
\begin{theorem} \end{theorem}
I can't seem to consistently replicate the issue, and I'm not sure why it happens some times but not others, but it is rather frequent.
Likely this is a bug in the automatic indenter.
In a test here it does only happen if you already start from an indented position and have
Options -> Editor -> Indentation Mode
set toIndent and unindent automatically
.As a workaround, set the above option to
Keep Indentation
.related: [bugs:#1335]
Related
Bugs:
#1335Last edit: Tim Hoffmann 2016-04-27