Skip to content

Conversation

mshsheikh
Copy link
Contributor

Problem:
The final story outline was printed as a single unformatted block, making it hard to read for multi-line or lengthy content.

Changes:

  • Added textwrap import to enable line-based formatting.
  • Replaced print(f"Final story outline: {latest_outline}") with:
   print("Final story outline:")
   print(textwrap.indent(latest_outline, "  "))
  • Ensures each line of the outline is indented by 2 spaces for visual clarity.

Benefits:

  • Improves readability of multi-line outputs.
  • Keeps the outline distinct from surrounding console logs.
  • Safe to use since latest_outline is guaranteed to be a string before printing (set in the loop).

Problem:
The final story outline was printed as a single unformatted block, making it hard to read for multi-line or lengthy content.

Changes:
- Added `textwrap` import to enable line-based formatting.
- Replaced `print(f"Final story outline: {latest_outline}")` with:
```python
   print("Final story outline:")
   print(textwrap.indent(latest_outline, "  "))
```
- Ensures each line of the outline is indented by 2 spaces for visual clarity.

Benefits:
- Improves readability of multi-line outputs.
- Keeps the outline distinct from surrounding console logs.
- Safe to use since `latest_outline` is guaranteed to be a string before printing (set in the loop).
@seratch seratch added documentation Improvements or additions to documentation feature:core labels Jul 14, 2025
@seratch
Copy link
Member

seratch commented Jul 14, 2025

Thanks for the suggestion, but I personally don't see benefits by just having textwrap.indent() here. The current one is also readable.

@mshsheikh mshsheikh closed this Jul 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation feature:core

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants