From 0d57d69a993284ed8d9703e5401e99fe57c288e4 Mon Sep 17 00:00:00 2001
From: Thomas Woerner <twoerner@redhat.com>
Date: Tue, 12 Oct 2021 16:18:57 +0200
Subject: [PATCH] galaxyfy: Fix newline issue in module examples

The newlines in module examples have been removed due to wrong strip for
the input lines.
---
 utils/galaxyfy.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/utils/galaxyfy.py b/utils/galaxyfy.py
index a0f0226f..cdca17a8 100644
--- a/utils/galaxyfy.py
+++ b/utils/galaxyfy.py
@@ -35,8 +35,7 @@ def galaxyfy_playbook(project_prefix, collection_prefix, lines):
     changeable = False
     include_role = False
     for line in lines:
-        line = line.rstrip()
-        stripped = line.lstrip()
+        stripped = line.strip()
         if stripped.startswith("- name:") or \
            stripped.startswith("- block:"):
             changeable = True
-- 
GitLab