diff --git a/DDG4/python/DDSim/DD4hepSimulation.py b/DDG4/python/DDSim/DD4hepSimulation.py
index 23781449da5b0bbea45438c340ef0f0c2c523fd6..05205161162acb35b391e49f56116e6b12c1fafb 100644
--- a/DDG4/python/DDSim/DD4hepSimulation.py
+++ b/DDG4/python/DDSim/DD4hepSimulation.py
@@ -10,6 +10,7 @@ from __future__ import absolute_import, unicode_literals, division, print_functi
 
 import os
 import sys
+import textwrap
 import traceback
 from DDSim.Helper.Meta import Meta
 from DDSim.Helper.LCIO import LCIO
@@ -614,11 +615,11 @@ class DD4hepSimulation(object):
   def __printSteeringFile(self, parser):
     """print the parameters formated as a steering file"""
 
-    steeringFileBase = """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)
     for parName, parameter in sorted(list(parameters.items()), key=sortParameters):