From 6c31a82bfea899ae658579774e4ab1ba9da24bb5 Mon Sep 17 00:00:00 2001 From: Paul Saxe Date: Tue, 15 Oct 2024 17:22:06 -0400 Subject: [PATCH] Bugfix: incorrectly wrapping text description of substeps * When printing the description of the substeps in the loop, the code incorrectly wrapped the text, which caused issues with e.g. tables. --- HISTORY.rst | 4 ++++ loop_step/loop.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/HISTORY.rst b/HISTORY.rst index 19678a8..1ed59aa 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -1,6 +1,10 @@ ======= History ======= +2024.10.15: Bugfix: incorrectly wrapping text description of substeps + * When printing the description of the substeps in the loop, the code incorrectly + wrapped the text, which caused issues with e.g. tables. + 2024.8.23 -- Enhancement to 'For' loops * For integer loops, ensure that the loop variable is an integer and make the directory name be value of the loop variable to make it easier diff --git a/loop_step/loop.py b/loop_step/loop.py index 5f736e8..3d8f17d 100644 --- a/loop_step/loop.py +++ b/loop_step/loop.py @@ -136,7 +136,7 @@ def description_text(self, P=None): next_node = self.loop_node() while next_node is not None and next_node != join_node: text += "\n\n" - text += __(next_node.description_text(), indent=4 * " ").__str__() + text += str(__(next_node.description_text(), indent=4 * " ", wrap=False)) next_node = next_node.next() return text