iantrich / config-template-card

📝 Templatable Lovelace Configurations
MIT License
441 stars 56 forks source link

Filter out newlines from the template #42

Closed jesserockz closed 4 years ago

jesserockz commented 4 years ago

When building a complex yaml template you cannot indent the "javascript" because the YAML parser inserts newlines and eval doesn't seem to work with strings with newlines in it (in my testing anyways).

iantrich commented 4 years ago

totally missed this. sorry about that.

jesserockz commented 4 years ago

All good, Unsure why, but it is working now without those changes on my instance.