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

mangles indentation after multiline strings with trailing whitespace #65

Open
diachedelic opened this issue Aug 19, 2020 · 1 comment
Open

Comments

@diachedelic
Copy link

So strange! Works if I remove the space at the end of the string.

$ scripts/beautysh.py - <<EOF
> #!/bin/bash
> VAR="
> text "
> 
> if true; then
> echo should be indented
> fi
> EOF
#!/bin/bash
VAR="
text "

if true; then
echo should be indented
fi
@diachedelic
Copy link
Author

Also occurs with variables ending with a newline.

$ scripts/beautysh.py - <<EOF
> #!/bin/bash
> VAR="
> "
> 
> if true; then
> echo should be indented
> fi
> EOF
#!/bin/bash
VAR="
"

if true; then
echo should be indented
fi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant