fmartinou / whats-up-docker

What's up Docker ( aka WUD ) gets you notified when a new version of your Docker Container is available.
https://fmartinou.github.io/whats-up-docker
MIT License
1.02k stars 33 forks source link

Return carriages "\n" in simplebody get escaped #213

Open jpbaril opened 1 year ago

jpbaril commented 1 year ago

I simply took the default simplebody content, added the newly {watcher} placeholder and escaped $ with a second $ as per examples in the documentation.

docker-compos.yml part:

environment:
      - WUD_TRIGGER_APPRISE_BASE_SIMPLEBODY=blah blah blah... $${remote} \n $${link}

See the double escaped "\\n" in the logs: wud | 15:02:09.427 INFO whats-up-docker/trigger.apprise.base: Register with configuration {"url":"https://user:password@apprise.domain.com","simplebody":"Container ${name} running on ${watcher} with ${kind} ${local} can be updated to ${kind} ${remote} \\n ${link}","once":false,"mode":"batch","urls":"m********************************************\n","threshold":"all","simpletitle":"New ${kind} found for container ${name}","batchtitle":"${count} updates available"}

There is indeed less space between each message of updatable container in the batch email I receive.

Should I also have added something so that "\n" does not get escaped or is it really a bug?