From 985f94857817bba4cc7093424614a72ab47b2e27 Mon Sep 17 00:00:00 2001
From: Juraj Smiesko <juraj.smiesko@cern.ch>
Date: Thu, 1 Jun 2023 15:44:35 +0200
Subject: [PATCH] Fixing indentation for dumped steering

---
 DDG4/python/DDSim/DD4hepSimulation.py | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/DDG4/python/DDSim/DD4hepSimulation.py b/DDG4/python/DDSim/DD4hepSimulation.py
index 5a541e6c5..47ccb35b3 100644
--- a/DDG4/python/DDSim/DD4hepSimulation.py
+++ b/DDG4/python/DDSim/DD4hepSimulation.py
@@ -615,10 +615,11 @@ class DD4hepSimulation(object):
   def __printSteeringFile(self, parser):
     """print the parameters formated as a steering file"""
 
-    steeringFileBase = textwrap.dedent("""from DDSim.DD4hepSimulation import DD4hepSimulation
-                                          from g4units import mm, GeV, MeV
-                                          SIM = DD4hepSimulation()
-                                          """)
+    steeringFileBase = textwrap.dedent("""\
+        from DDSim.DD4hepSimulation import DD4hepSimulation
+        from g4units import mm, GeV, MeV
+        SIM = DD4hepSimulation()
+        """)
     steeringFileBase += "\n"
     optionDict = parser._option_string_actions
     parameters = vars(self)
-- 
GitLab