Closed vindex10 closed 11 months ago
Thanks for this, I hope to look at it soon.
Is your yaml minimal?
I've been able to verify this undesired behaviour. The following yaml file is minimal
modifyLineBreaks:
optionalArguments:
RSqBFinishesWithLineBreak: 1
I need to look into this. It looks like indentPreamble
is not being respected with STDIN
I believe that this is the problem line:
In particular, the lookForPreamble
field in defaultSettings.yaml
doesn't have an entry for STDIN
which is then not feeding through to this.
I should be able to get to this fairly soon, hopefully.
Fixed as of https://github.com/cmhughes/latexindent.pl/commit/a30cfa927b582f3a95cec1b345dd17d69fd3b3e8, I'll hopefully get this released soon. Please leave this open until released.
thanks again for reporting!
fixed and released at https://github.com/cmhughes/latexindent.pl/releases/tag/V3.23.4, uploaded to ctan. thanks again
Thank you! That was a super quick reaction, appreciate a lot!
original .tex code
yaml settings
actual/given output
same as with either of these commands:
cat orig.tex | latexindent -o tmp.tex -l ./latexindent.yaml -m -
latexindent -o tmp.tex -l ./latexindent.yaml -m - < orig.tex
(latexindent -o tmp.tex -l ./latexindent.yaml -m <(tee)) < orig.tex
- for this to work I had to add "an empty extension preference"desired or expected output
same as with this command:
latexindent -o tmp.tex -l ./latexindent.yaml -m orig.tex
Hi! Thank you for such a nice tool :)
I noticed that there is a difference in outputs when the tool is using file input vs stdin.