Sometimes it's easier to type out a string with breaks rather than as a single, long line. Here's how to do that in [[Python]]:
```python
with open(monsterFilePath + name + '.md', 'w') as output_file:
string = f'''---
name: {name}
size: {size}
type: {type}
environment: {environment}
hp: {hp}
ac: {ac}
initiative: {initiative}
alignment: {alignment}
legendary: {legendary}
lair: {lair}
unique: {unique}
cr: {cr}
tags: {tags}
source: "{source}"
---'''
```
The `'''` at the beginning and end of the string definition are what allow the multiline string.