From 5df1e163ee309b92c331c25c3587ebc8e8288314 Mon Sep 17 00:00:00 2001 From: Prowler Bot Date: Thu, 24 Apr 2025 17:27:31 +0200 Subject: [PATCH] fix(html): remove first empty line (#7608) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Pedro Martín --- prowler/CHANGELOG.md | 3 ++- prowler/lib/outputs/html/html.py | 3 +-- tests/lib/outputs/html/html_test.py | 3 +-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/prowler/CHANGELOG.md b/prowler/CHANGELOG.md index 808998c2b5..3358473d8b 100644 --- a/prowler/CHANGELOG.md +++ b/prowler/CHANGELOG.md @@ -16,7 +16,8 @@ All notable changes to the **Prowler SDK** are documented in this file. - Add the correct values for logger.info inside iam service [(#7526)](https://github.com/prowler-cloud/prowler/pull/7526). - Update S3 bucket naming validation to accept dots [(#7545)](https://github.com/prowler-cloud/prowler/pull/7545). - Handle new FlowLog model properties in Azure [(#7546)](https://github.com/prowler-cloud/prowler/pull/7546). -- Remove invalid parameter `create_file_descriptor` [(#7600)](https://github.com/prowler-cloud/prowler/pull/7600) +- Remove first empty line in HTML output [(#7606)](https://github.com/prowler-cloud/prowler/pull/7606) +- Remove invalid parameter `create_file_descriptor` in NHN provider [(#7600)](https://github.com/prowler-cloud/prowler/pull/7600) --- diff --git a/prowler/lib/outputs/html/html.py b/prowler/lib/outputs/html/html.py index 8e3c88efd6..7798c39eb4 100644 --- a/prowler/lib/outputs/html/html.py +++ b/prowler/lib/outputs/html/html.py @@ -106,8 +106,7 @@ class HTML(Output): """ try: file_descriptor.write( - f""" - + f""" diff --git a/tests/lib/outputs/html/html_test.py b/tests/lib/outputs/html/html_test.py index c9fe3ddba9..2bc6d9ab07 100644 --- a/tests/lib/outputs/html/html_test.py +++ b/tests/lib/outputs/html/html_test.py @@ -233,8 +233,7 @@ def get_aws_html_header(args: list) -> str: Returns: str: HTML header for AWS """ - aws_html_header = f""" - + aws_html_header = f"""