From c8291fdcfa469c36462d9322bfd8cd720f6b73d9 Mon Sep 17 00:00:00 2001 From: Marco Bonelli Date: Mon, 13 Jan 2020 20:45:31 +0100 Subject: [PATCH] Remove unnecessary newlines in send-to-bot messages. (#3754) GitHub wraps text in comments even when a single newline is encountered. This made comments by @tldr-bot look awkward. --- scripts/send-to-bot.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/send-to-bot.py b/scripts/send-to-bot.py index 81d876dcbc..db1cb36747 100644 --- a/scripts/send-to-bot.py +++ b/scripts/send-to-bot.py @@ -8,8 +8,7 @@ import urllib.request BOT_URL = 'https://tldr-bot.starbeamrainbowlabs.com' COMMENT_ERROR=""" -The [build](https://travis-ci.org/tldr-pages/tldr/builds/{build_id}) -for this PR failed with the following error(s): +The [build](https://travis-ci.org/tldr-pages/tldr/builds/{build_id}) for this PR failed with the following error(s): ``` {content} @@ -23,8 +22,7 @@ Hello! I've noticed something unusual when checking this PR: {content} -Is this intended? If so, just ignore this comment. Otherwise, please -double-check the commits. +Is this intended? If so, just ignore this comment. Otherwise, please double-check the commits. """ ################################################################################