Fixed variable 'end_line_ix' referenced before assignment
Change-Id: I9cbdfbb2134e4475a2292aa14bda22f583083c5e
Signed-off-by: Michael Walsh <micwalsh@us.ibm.com>
diff --git a/lib/gen_print.py b/lib/gen_print.py
index d30ddb7..18aa896 100755
--- a/lib/gen_print.py
+++ b/lib/gen_print.py
@@ -329,6 +329,7 @@
# indentation is the same or less than the start line. The end of our
# composite line should be the line preceding that line.
start_indent = get_line_indent(source_lines[start_line_ix])
+ end_line_ix = line_ix
for end_line_ix in range(line_ix + 1, len(source_lines)):
if source_lines[end_line_ix].strip() == "":
continue