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

Wrong indentation of yaml literals starting with dash #66

Open
max-arnold opened this issue Oct 12, 2018 · 7 comments
Open

Wrong indentation of yaml literals starting with dash #66

max-arnold opened this issue Oct 12, 2018 · 7 comments

Comments

@max-arnold
Copy link

Instead of this:

        password: |
          -----BEGIN PGP MESSAGE-----
          BLAH
          -----END PGP MESSAGE-----

I get this:

        password: |
-----BEGIN PGP MESSAGE-----
BLAH
-----END PGP MESSAGE-----
@HParker
Copy link
Contributor

HParker commented Dec 7, 2018

I am unable to reproduce this issue. When I type a | at the end of a line I am automatically moved to the next line at the correct indentation.

@max-arnold
Copy link
Author

@HParker Have you tried to type the -----BEGIN PGP MESSAGE----- string?

@HParker
Copy link
Contributor

HParker commented Dec 7, 2018

I did, let me know if I am not testing correctly:

yaml-example

@max-arnold
Copy link
Author

Try to paste it from the clipboard.

@HParker
Copy link
Contributor

HParker commented Dec 8, 2018

which one? I mean, if I copy the one without indentation, I get no indentation, but that is what I would expect.

@max-arnold
Copy link
Author

This is what happens when I try to indent/dedent with the tab button:

2018-12-08 13 22 04

@max-arnold
Copy link
Author

In my understanding, yaml-mode treats the --- as the start of new YAML document: https://yaml.org/spec/1.0/#id2561718

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

2 participants