@@ -140,17 +140,19 @@ the terminal or not.
140140Aligning Text
141141--------------
142142
143- If you would like to generate output which is left, center, or right aligned within a
144- specified width or the terminal width, the following functions can help:
143+ If you would like to generate output which is left, center, or right aligned
144+ within a specified width or the terminal width, the following functions can
145+ help:
145146
146147- :meth: `cmd2.utils.align_left `
147148- :meth: `cmd2.utils.align_center `
148149- :meth: `cmd2.utils.align_right `
149150
150- These functions differ from Python's string justifying functions in that they support
151- characters with display widths greater than 1. Additionally, ANSI style sequences are safely
152- ignored and do not count toward the display width. This means colored text is supported. If
153- text has line breaks, then each line is aligned independently.
151+ These functions differ from Python's string justifying functions in that they
152+ support characters with display widths greater than 1. Additionally, ANSI style
153+ sequences are safely ignored and do not count toward the display width. This
154+ means colored text is supported. If text has line breaks, then each line is
155+ aligned independently.
154156
155157
156158
@@ -165,5 +167,5 @@ in the output to generate colors on the terminal.
165167
166168The :meth: `cmd2.ansi.style_aware_wcswidth ` function solves both of these
167169problems. Pass it a string, and regardless of which Unicode characters and ANSI
168- text style escape sequences it contains, it will tell you how many characters on the
169- screen that string will consume when printed.
170+ text style escape sequences it contains, it will tell you how many characters
171+ on the screen that string will consume when printed.
0 commit comments