Today I Learned

hashrocket A Hashrocket project

Multi-line string heredoc in YAML

For the times when you have a larger bit of text or a string with new lines, this may come in handy

To preserve new lines, use a | after your key definition:

---
multiline_text: |
  Let me tell you a story...
  
  About my multi-line string.

This would output a string like so:

Let me tell you a story...\nAbout my multi-line string.
See More #workflow TILs