6
Completed

can support for <br> be added?

I'd love to add line breaks. I mostly use curl, which doesn't seem to process the \n command well. So in my old notification tool, I used <br>, which was supported.

I know there is an HTML argument that needs to made, but it doesn't seem to support <br>

2 replies

CH

Good day,

This is an old thread, however, I have been trying to format the pushover messages with new lines / line breaks desperately and this is the main thread I find when googleing.... (full disclosure I am far form a Bash script developer ... this has just "worked" for me!)

For my application I had to replace '\n' characters within a variable coming from a C program...Then push this to the PO API using curl ...

My $message variable would be along the lines of "testing1\nthis is a new line\nand a final line". I needed each line to be separated by a new line.

I replaced every instance of '\n' with a returned line in my bash script using:

output=${message//'\n'/
}

I was surprised this actually works... however, when using the new $output variable in my curl call...
-F "message=$output" \

My message coming through to Pushover is written out as:

testing1

this is a new line

and a final line

I hope this helps at least one person!

Cheers,

Charlie

Hi, all of our apps support <br> in HTML messages to act as a line break.

Topic is closed for comments