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

Commit message in {{commit.message}} contains "\n\n" #61

Open
Imjamper opened this issue Apr 5, 2018 · 2 comments
Open

Commit message in {{commit.message}} contains "\n\n" #61

Imjamper opened this issue Apr 5, 2018 · 2 comments

Comments

@Imjamper
Copy link

Imjamper commented Apr 5, 2018

Subject. How I can remove "\n\n" characters ? Thank you.

@appleboy
Copy link
Owner

appleboy commented Apr 6, 2018

@thejackgatsby Why need to remove \n\n characters?

@Imjamper
Copy link
Author

Imjamper commented Apr 6, 2018

Example:

{{#success build.status}}
        <a href="{{build.link}}">[#{{build.number}}] The build was successfull. All services were deployed.</a>
        <pre>Branch: {{commit.Branch}}</pre>
        <pre>Message: {{commit.Message}}</pre>
        <pre>SHA: ${DRONE_COMMIT_SHA:0:8}</pre>
        <pre>Author: {{commit.Author}}</pre>
        <pre>Elapsed: {{buildtime build.started}}</pre>
      {{else}}
        <a href="{{build.link}}">[#{{build.number}}] Build failed.</a>
        <pre>Branch: {{commit.Branch}}</pre>
        <pre>Message: {{commit.Message}}</pre>
        <pre>SHA: ${DRONE_COMMIT_SHA:0:8}</pre>
        <pre>Author: {{commit.Author}}</pre>
        <pre>Elapsed: {{buildtime build.started}}</pre>
      {{/success}}

And in telegram I have:
error

Updated:
I noticed this only now, the newline character also occurs in other properties. Maybe I did something wrong?

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

No branches or pull requests

2 participants