Commit f4ada22
authored
Format final story outline for better readability using textwrap
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).1 parent eafd8df commit f4ada22
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
72 | | - | |
| 73 | + | |
| 74 | + | |
73 | 75 | | |
74 | 76 | | |
75 | 77 | | |
| |||
0 commit comments