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

Add support to <br> #100

Closed
tomaswarynyca opened this issue May 5, 2021 · 4 comments
Closed

Add support to <br> #100

tomaswarynyca opened this issue May 5, 2021 · 4 comments

Comments

@tomaswarynyca
Copy link

tomaswarynyca commented May 5, 2021

In my case I don't use multiple messages in the template, I use a generic one.
If I use html the text is put all together so you need to add a <br> to make a line break.

@appleboy
Copy link
Owner

appleboy commented May 6, 2021

Good point.

@tomaswarynyca
Copy link
Author

tomaswarynyca commented May 6, 2021

If not see how to make it not put everything together
Here is an example of my code

<a>Hi</a>
<b>Hi</b>

This returns HiHi

You should return

Hi
Hi

@SershoCode
Copy link

I agree with this, it is a very necessary functionality. I couldn't make a line break in any way. Please do it

@appleboy
Copy link
Owner

Try it out:

  - name: send telegram notification
    image: appleboy/drone-telegram
    settings:
      token: xxxxxxxxxx
      to: telegram_user_id
      format: HTML
+     message: >
+       Test HTML Format from file
+       <a href='https://google.com'>Google .com 1</a>
+       <a href='https://google.com'>Google .com 2</a>
+       <a href='https://google.com'>Google .com 3</a>
+       <a href='https://google.com'>Google .com 4</a>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants