vdmitriyev / latex-git-hooks

pre-commit hooks for LaTeX
MIT License
1 stars 0 forks source link

bug: `check-single-command-per-line` hooks is not handling all cases properly #4

Closed vdmitriyev closed 1 week ago

vdmitriyev commented 1 week ago

check-single-command-per-line hooks is not handling all valid cases properly. See the example:

\begin{thebibliography}{9}
\bibitem{texbook}
....
\end{thebibliography}

{9} is not expected after {thebibliography}, but still looks valid

vdmitriyev commented 1 week ago

Fixed in: https://github.com/vdmitriyev/latex-git-hooks/commit/fb105112b110dba06b847ee7157a72b96e23c949