Evpok / latex-autocomplete

LaTeX autocompletion for atom
Other
9 stars 3 forks source link

Nested itemizes on one line #5

Closed 314eter closed 8 years ago

314eter commented 8 years ago

When multiple itemizes are opened, multiple items are inserted.

\begin{itemize}\item\begin{itemize}
  \item \item
\end{itemize}\end{itemize}

I think it's never necessary to insert more than one item. Just looking at the last opened environment and inserting one item if necessary should suffice. The only problem would be:

\begin{itemize}\item
  \item
\end{itemize}
Evpok commented 8 years ago

Indeed, I saw it in your PR, just forgot to add it.

314eter commented 8 years ago

Ok, thanks ;) The second example is still not fixed, that requires checking for items on the same line, but I don't think it's necessary to spend time on it.