Closed kwshi closed 8 months ago
Apologies for the delay, I'm hoping to get to this soon
For my reference, start here:
Thanks for this.
As of https://github.com/cmhughes/latexindent.pl/commit/38cf7c307be306e355525966656ed1d33e7864ec if we start with
defaultIndent: " "
modifyLineBreaks:
textWrapOptions:
columns: 60
when: "after"
blocksFollow:
other: |
(?x)
\\begin\{myenv\}
|
\\end\{myenv\}
then we receive
\begin{myenv}
yo it's your boy here kwshi back at it with yet another
example to break latexindent
\end{myenv}
it's been a good couple months hasn't it how you been my
friend i've been starting to miss you having not been on
here filing issues for so long that i was so excited when
latexindent started acting up again, gives me a good excuse
to come chat with you
----|----|----|----|----|----|----|----|----|----|----|----|
5 10 15 20 25 30 35 40 45 50 55 60
I'll get this released soon. Thanks again.
Released at https://github.com/cmhughes/latexindent.pl/releases/tag/V3.23.5, uploaded to ctan. Thanks again.
Please provide the following when posting an issue:
original .tex code
yaml settings (taken roughly from https://latexindentpl.readthedocs.io/en/latest/sec-the-m-switch.html#lst-tw-bf-myenv-yaml)
actual/given output
desired or expected output
Issue doesn't occur using
when: before
. Curiously enough the issue with extra indentation also doesn't occur within the environment (after\begin{myenv}
); it also goes away if I introduce an extra blank line after\end{myenv}
, or a blank comment (which is an OK workaround).Probably related to #450 and #412.
Also, an observation that may come in handy for troubleshooting: the extra indentation lines up exactly with where the
\end{...}
line ends. See this other example:and notice how
hasn't it how you ...
is indented to exactly where{...areyou}
ends two lines above it.