Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apprise Notification linebreak #33

Open
MueJosh opened this issue Apr 8, 2024 · 3 comments
Open

Apprise Notification linebreak #33

MueJosh opened this issue Apr 8, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@MueJosh
Copy link

MueJosh commented Apr 8, 2024

Lines breaks for notification (in this case it's telegram) don't work as they should.
Test message is fine, normal operation is not.

Example, this is how it's set up normally:
Ein/e $comname ($sciname) wurde soeben erkannt. Erkennungswahrscheinlichkeit $confidencepct%
Looks like this:
image

Code for break-line <> , /n , %0A or whatever the server wants for a break
Ein/e $comname ($sciname) wurde soeben erkannt. %0AErkennungswahrscheinlichkeit $confidencepct%

This is how it's supposed to look like (send with "test notification" button)
image

Same break line %0A
How it actually comes out:
image

If I have the time (can be weeks to months) I can handle it. Though I would be glad if someone else can look at it.

Maybe it's an issue with apprise? (I don't think so)

Ursprünglich gepostet von @MueJosh in #26 (comment)

@Nachtzuster
Copy link
Owner

The people who created this aren't involved anymore, so I cant tell for sure, but I doubt this Notification Body input box was ever intended to support line breaks let alone italic or bold...

So I'm unsure on how to label this as a bug or a feature request 🤡

@arne1921KF
Copy link

Since I brought this up: my understanding is that markdown doesn't support forced line breaks. Hence, it is a feature, not a bug. 😉

A linebreak can be used by adding a prefix of two spaces to a new line - which can't work if you just have one line.

While I would very much appreciate if it would be possible to add a line break for (e.g., telegram) notifications, I don't think think this should be a priority.

@MueJosh
Copy link
Author

MueJosh commented Apr 8, 2024

The people who created this aren't involved anymore, so I cant tell for sure, but I doubt this Notification Body input box was ever intended to support line breaks let alone italic or bold...

So I'm unsure on how to label this as a bug or a feature request 🤡

It's not an bug at all

Since I brought this up: my understanding is that markdown doesn't support forced line breaks. Hence, it is a feature, not a bug. 😉

A linebreak can be used by adding a prefix of two spaces to a new line - which can't work if you just have one line.

While I would very much appreciate if it would be possible to add a line break for (e.g., telegram) notifications, I don't think think this should be a priority.

I have markdown disabled and it doesn't work

It works with just one line, as you can see in my screenshot.
It works every time when I run test notification.
%0A tells the tg bot to basically hit enter
I'm not a coder, don't know the right wording. Maybe breakline doesn't fit it.

It's not a priority by any means.

Edit:
Just to make sure that %0A really works and it's not because the bird name is too long for a break line. I've put it right in the beginning and voila... Send with test notification script. (Normal operation doesn't work obviously)

Ein/e $comname %0A($sciname) wurde soeben erkannt. Erkennungswahrscheinlichkeit $confidencepct%

image

@Nachtzuster Nachtzuster added the enhancement New feature or request label Apr 9, 2024
@Nachtzuster Nachtzuster changed the title Apprise Notification linebreak, italic, bold - doesnt work as intended Apprise Notification linebreak Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants