Today I Learned

hashrocket A Hashrocket project

Explicit new line at end of string in YAML

To explicitly add a new line to the end of your string, 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.\n
See More #workflow TILs