Skip to content

Commit

Permalink
fix indentation of r.out.gdal/v.out.ogr commands (pywps)
Browse files Browse the repository at this point in the history
  • Loading branch information
landam committed Jan 23, 2024
1 parent 2874184 commit 25f007f
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions gui/wxpython/gmodeler/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -2928,6 +2928,7 @@ def _writePythonAction(self, item, variables={}, intermediates=None):
else:
overwrite_string = ""

strcmd_len = len(strcmd.strip())
self.fd.write(
"""
{run_command}"{cmd}",
Expand All @@ -2939,14 +2940,14 @@ def _writePythonAction(self, item, variables={}, intermediates=None):
""".format(
run_command=strcmd,
cmd=command,
indent1=" " * (self.indent + 12),
indent1=" " * (self.indent + strcmd_len),
input=param_request,
indent2=" " * (self.indent + 12),
indent3=" " * (self.indent + 16),
indent4=" " * (self.indent + 16),
indent2=" " * (self.indent + strcmd_len),
indent3=" " * (self.indent * 2 + strcmd_len),
indent4=" " * (self.indent * 2 + strcmd_len),
out=param_request,
format_ext=extension,
indent5=" " * (self.indent + 12),
indent5=" " * (self.indent + strcmd_len),
format=format,
overwrite_string=overwrite_string,
)
Expand Down

0 comments on commit 25f007f

Please sign in to comment.