diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2020-01-20 21:44:10 -0500 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2020-01-20 21:44:10 -0500 |
commit | 2f52a849d5100f309745c5b3b1c91fc97de178a9 (patch) | |
tree | d3a98dca7645c7acd94a418d72e05b46b5ba8bc7 /docs | |
parent | e23f9f63fee19bd43bf3fde36eb59392451ccad8 (diff) | |
download | cmd2-git-2f52a849d5100f309745c5b3b1c91fc97de178a9.tar.gz |
Fix doc8 line length violations committed in prevoius PR
Diffstat (limited to 'docs')
-rw-r--r-- | docs/features/generating_output.rst | 18 | ||||
-rw-r--r-- | docs/features/settings.rst | 17 |
2 files changed, 19 insertions, 16 deletions
diff --git a/docs/features/generating_output.rst b/docs/features/generating_output.rst index f3d2a7f4..d5224e86 100644 --- a/docs/features/generating_output.rst +++ b/docs/features/generating_output.rst @@ -140,17 +140,19 @@ the terminal or not. Aligning Text -------------- -If you would like to generate output which is left, center, or right aligned within a -specified width or the terminal width, the following functions can help: +If you would like to generate output which is left, center, or right aligned +within a specified width or the terminal width, the following functions can +help: - :meth:`cmd2.utils.align_left` - :meth:`cmd2.utils.align_center` - :meth:`cmd2.utils.align_right` -These functions differ from Python's string justifying functions in that they support -characters with display widths greater than 1. Additionally, ANSI style sequences are safely -ignored and do not count toward the display width. This means colored text is supported. If -text has line breaks, then each line is aligned independently. +These functions differ from Python's string justifying functions in that they +support characters with display widths greater than 1. Additionally, ANSI style +sequences are safely ignored and do not count toward the display width. This +means colored text is supported. If text has line breaks, then each line is +aligned independently. @@ -165,5 +167,5 @@ in the output to generate colors on the terminal. The :meth:`cmd2.ansi.style_aware_wcswidth` function solves both of these problems. Pass it a string, and regardless of which Unicode characters and ANSI -text style escape sequences it contains, it will tell you how many characters on the -screen that string will consume when printed. +text style escape sequences it contains, it will tell you how many characters +on the screen that string will consume when printed. diff --git a/docs/features/settings.rst b/docs/features/settings.rst index 627f61a9..697c68a7 100644 --- a/docs/features/settings.rst +++ b/docs/features/settings.rst @@ -70,8 +70,8 @@ echo ~~~~ If ``True``, each command the user issues will be repeated to the screen before -it is executed. This is particularly useful when running scripts. This behavior -does not occur when a running command at the prompt. +it is executed. This is particularly useful when running scripts. This +behavior does not occur when a running command at the prompt. editor @@ -105,13 +105,14 @@ Allow access to your application in one of the max_completion_items ~~~~~~~~~~~~~~~~~~~~ -Maximum number of CompletionItems to display during tab completion. A CompletionItem -is a special kind of tab-completion hint which displays both a value and description -and uses one line for each hint. Tab complete the ``set`` command for an example. +Maximum number of CompletionItems to display during tab completion. A +CompletionItem is a special kind of tab-completion hint which displays both a +value and description and uses one line for each hint. Tab complete the ``set`` +command for an example. -If the number of tab-completion hints exceeds ``max_completion_items``, then they will -be displayed in the typical columnized format and will not include the description text -of the CompletionItem. +If the number of tab-completion hints exceeds ``max_completion_items``, then +they will be displayed in the typical columnized format and will not include +the description text of the CompletionItem. prompt |