astrale-sharp / typstfmt

Apache License 2.0
253 stars 25 forks source link

Do not remove LF character at the EOF #125

Open Andrew15-5 opened 1 year ago

Andrew15-5 commented 1 year ago

Describe the bug

% in zsh's output means that the end of output is at the end of the line where % is, meaning that there is no LF at the end of this line. image

If i chat print file's output, no % is shown:

image

To Reproduce Steps to reproduce the behavior: echo word | typstfmt --output - (echo always adds LF at the end of the line). This will output: image