Skip to content

Commit 98e5e90

Browse files
committed
Updated comment.
1 parent 56b10c3 commit 98e5e90

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cmd2/cmd2.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1280,9 +1280,9 @@ def print_to(
12801280
**Why use this method instead of console.print()?**
12811281
12821282
This method calls ``cmd2.rich_utils.prepare_objects_for_rendering()`` on the objects
1283-
being printed. This ensures that strings containing ANSI style sequences are correctly
1284-
converted to Rich Text objects, preserving their style and calculating the correct
1285-
display width. This is particularly important when capturing output from a console.
1283+
being printed. This ensures that strings containing ANSI style sequences are converted
1284+
to Rich Text objects, so that Rich can correctly calculate their display width when
1285+
printing.
12861286
12871287
Example:
12881288
```py

0 commit comments

Comments
 (0)