Skip to content

Commit ba80985

Browse files
committed
minor #19891 [Console] Add other pre-defined block styles (devojifr)
This PR was squashed before being merged into the 5.4 branch. Discussion ---------- [Console] Add other pre-defined block styles Add other pre-defined block styles : error, info, comment, question Fix missing word and typo Commits ------- b87da56 [Console] Add other pre-defined block styles
2 parents 5961ea1 + b87da56 commit ba80985

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

components/console/helpers/formatterhelper.rst

+5-4
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,9 @@ block will be formatted with more padding (one blank line above and below the
6464
messages and 2 spaces on the left and right).
6565

6666
The exact "style" you use in the block is up to you. In this case, you're using
67-
the pre-defined ``error`` style, but there are other styles, or you can create
68-
your own. See :doc:`/console/coloring`.
67+
the pre-defined ``error`` style, but there are other styles (``info``,
68+
``comment``, ``question``), or you can create your own.
69+
See :doc:`/console/coloring`.
6970

7071
Print Truncated Messages
7172
------------------------
@@ -87,7 +88,7 @@ And the output will be:
8788
8889
This is...
8990
90-
The message is truncated to the given length, then the suffix is appended to end
91+
The message is truncated to the given length, then the suffix is appended to the end
9192
of that string.
9293

9394
Negative String Length
@@ -109,7 +110,7 @@ Custom Suffix
109110

110111
By default, the ``...`` suffix is used. If you wish to use a different suffix,
111112
pass it as the third argument to the method.
112-
The suffix is always appended, unless truncate length is longer than a message
113+
The suffix is always appended, unless truncated length is longer than a message
113114
and a suffix length.
114115
If you don't want to use suffix at all, pass an empty string::
115116

0 commit comments

Comments
 (0)