Skip to content

Commit

Permalink
Bugfix: incorrectly wrapping text description of substeps
Browse files Browse the repository at this point in the history
* When printing the description of the substeps in the loop, the code incorrectly
  wrapped the text, which caused issues with e.g. tables.
  • Loading branch information
paulsaxe committed Oct 15, 2024
1 parent 916e1bc commit 6c31a82
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion loop_step/loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6c31a82

Please sign in to comment.