From 8750f4b448ca404db44d79dd6ae41bda54e544ee Mon Sep 17 00:00:00 2001 From: Anatoliy Siryi Date: Mon, 25 Jul 2022 10:55:40 +0300 Subject: [PATCH] Remove redundant line separator after generated table --- megalinter/utils_reporter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/megalinter/utils_reporter.py b/megalinter/utils_reporter.py index 62cd0f53384..709fdc7f211 100644 --- a/megalinter/utils_reporter.py +++ b/megalinter/utils_reporter.py @@ -68,7 +68,7 @@ def build_markdown_summary(reporter_self, action_run_url): # Build markdown table table_data_raw.pop(0) writer = MarkdownTableWriter(headers=table_header, value_matrix=table_data_raw) - table_content = str(writer) + os.linesep if len(table_data_raw) > 1 else "" + table_content = str(writer) status = ( "✅" if reporter_self.master.return_code == 0