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

How to Preserve break lines #90

Open
pepas24 opened this issue Jan 24, 2023 · 0 comments
Open

How to Preserve break lines #90

pepas24 opened this issue Jan 24, 2023 · 0 comments

Comments

@pepas24
Copy link

pepas24 commented Jan 24, 2023

How can I preserve break lines in a long string?

---
title: Test
description: My description with multiple
lines
---

I've this error:
YAMLException: can not read a block mapping entry; a multiline key may not be an implicit key at line 4, column 13

I tried using | character but don't work

---
title: Test
description: |
My description with multiple
lines
---

Then I've tried wrap the text in single quotes, the error has gone but the break lines aren't preserved.

---
title: Test
description: 'My description with multiple
lines'
---

I apreciate your response, thanks!

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