Skip to content

Add support to <br> #100

Closed
Closed

Description

@tomaswarynyca

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.

Activity

  1. appleboy commented on May 6, 2021

    @appleboy
    Owner

    Good point.

  2. tomaswarynyca commented on May 6, 2021

    @tomaswarynyca
    Author

    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

  3. SershoCode commented on Jul 11, 2021

    @SershoCode

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

  4. appleboy commented on Jul 12, 2021

    @appleboy
    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='/p/https://google.com'>Google .com 1</a>
    +       <a href='/p/https://google.com'>Google .com 2</a>
    +       <a href='/p/https://google.com'>Google .com 3</a>
    +       <a href='/p/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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      ⌂ 换网址