gummi icon indicating copy to clipboard operation
gummi copied to clipboard

Snippets do not preserve indentation

Open jeanlucthumm opened this issue 10 years ago • 2 comments

Snippet generation does not preserve the indentation level of the text that was typed. For example, take the begin snippet. We want this:

\begin{document}
    \begin{equation}
    f(x)
    \end{equation}
\end{document}

But instead we get this:

\begin{document}
    \begin{equation}
    f(x)
\end{equation}
\end{document}

jeanlucthumm avatar Dec 20 '15 07:12 jeanlucthumm

Currently working on a solution. I have already identified the location of the bug. Watch for a pull request relatively soon.

jeanlucthumm avatar Dec 20 '15 11:12 jeanlucthumm

Great work, fixes this important problem for me. ~~Why is there no PR yet? :)~~ Nevermind, actually there is. Hope to see it in master soon.

cobalamin avatar Apr 09 '17 14:04 cobalamin