Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comment after \item affects its alignment #467

Closed
dpo opened this issue Sep 8, 2023 · 4 comments
Closed

Comment after \item affects its alignment #467

dpo opened this issue Sep 8, 2023 · 4 comments
Labels
bug unexpected behaviour; should be a priority for fixing implemented implemented tag means that either an enhancement or feature request has been implemented, or bugfix

Comments

@dpo
Copy link

dpo commented Sep 8, 2023

Please provide the following when posting an issue:

original .tex code

\begin{enumerate}
  \item One
  \item
    Two.
\end{enumerate}

\begin{enumerate}
  \item One
  \item%
    Two.
\end{enumerate}

yaml settings

All defaults.

actual/given output

\begin{enumerate}
        \item One
        \item
              Two.
\end{enumerate}

\begin{enumerate}
        \item One
              \item%
              Two.
\end{enumerate}

desired or expected output

\begin{enumerate}
        \item One
        \item
              Two.
\end{enumerate}

\begin{enumerate}
        \item One
        \item%
        Two.
\end{enumerate}

anything else

Why does the comment after \item affect its alignment? It looks as though the second \item is being mistaken as part of the contents of the first.

@cmhughes
Copy link
Owner

cmhughes commented Sep 9, 2023

Many thanks, this is a bug. I hope to get to it soon.

@cmhughes cmhughes added the bug unexpected behaviour; should be a priority for fixing label Sep 9, 2023
cmhughes added a commit that referenced this issue Sep 9, 2023
@cmhughes
Copy link
Owner

cmhughes commented Sep 9, 2023

Fixed as of 682d464, a release to follow soon, hopefully.

@cmhughes cmhughes added the implemented implemented tag means that either an enhancement or feature request has been implemented, or bugfix label Sep 9, 2023
@cmhughes
Copy link
Owner

cmhughes commented Sep 9, 2023

Implemented at https://github.com/cmhughes/latexindent.pl/releases/tag/V3.23

@cmhughes cmhughes closed this as completed Sep 9, 2023
@dpo
Copy link
Author

dpo commented Sep 9, 2023

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug unexpected behaviour; should be a priority for fixing implemented implemented tag means that either an enhancement or feature request has been implemented, or bugfix
Projects
None yet
Development

No branches or pull requests

2 participants