8000 Merge branch '7.0' into 7.1 · symfony/symfony-docs@d4f51e6 · GitHub
[go: up one dir, main page]

Skip to content
< 8000 header class="HeaderMktg header-logged-out js-details-container js-header Details f4 py-3" role="banner" data-is-top="true" data-color-mode=light data-light-theme=light data-dark-theme=dark>

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d4f51e6

Browse files
committed
Merge branch '7.0' into 7.1
* 7.0: [Console] Add other pre-defined block styles
2 parents 4a052d5 + 6120cde commit d4f51e6

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

components/console/helpers/formatterhelper.rst

Lines changed: 5 additions & 4 deletions
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)
0