Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix: incorrectly wrapping text description of substeps #29

Merged
merged 1 commit into from
Oct 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading