summaryrefslogtreecommitdiff
path: root/grc
diff options
context:
space:
mode:
authorMike Walters <mike@flomp.net>2020-12-13 20:28:21 +0000
committerMartin Braun <martin@gnuradio.org>2020-12-18 01:03:52 -0800
commit875f845f8e7dd65ea0bd29119838bf5014cd609b (patch)
tree3828a484abd5cafc6516bd61641438bebe689724 /grc
parent72b362572918ac04d390156cf2e2efa386e2afe5 (diff)
grc: indent multiline connections in py flowgraph
This fixes flowgraph generation when using connection templates with multiple lines. Previously it would only indent the first line and subsequent lines would have no indentation, causing a python error. Signed-off-by: Mike Walters <mike@flomp.net>
Diffstat (limited to 'grc')
-rw-r--r--grc/core/generator/flow_graph.py.mako2
1 files changed, 1 insertions, 1 deletions
diff --git a/grc/core/generator/flow_graph.py.mako b/grc/core/generator/flow_graph.py.mako
index e20f96c832..81d71bd569 100644
--- a/grc/core/generator/flow_graph.py.mako
+++ b/grc/core/generator/flow_graph.py.mako
@@ -217,7 +217,7 @@ gr.io_signature.makev(${len(io_sigs)}, ${len(io_sigs)}, [${', '.join(size_strs)}
# Connections
${'##################################################'}
% for connection in connections:
- ${ connection.rstrip() }
+ ${ indent(connection.rstrip()) }
% endfor
% endif