documenting the hardline within an ifBreak odd behaviour (#15746)
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
This commit is contained in:
1 parent
56408635eb
commit
0d6db6e98b
1 file changed
+4
@@ -97,6 +97,10 @@ ifBreak(";", " ");
|
||||
|
||||
`groupId` can be used to check another _already printed_ group instead of the current group.
|
||||
|
||||
If a [`hardline`](#hardline) or [`breakParent`](#breakParent) is present within the possible contents, the parent groups will be broken regardless of said content being printed, which might not be desireable. This behaviour is a design limitation. Usually the desired result can be achieved in a different way.
|
||||
|
||||
In the rare case that `hardline` is definitely needed, consider using [`hardlineWithoutBreakParent`](#hardlinewithoutbreakparent-and-literallinewithoutbreakparent) instead to avoid an unwanted group break propagation.
|
||||
|
||||
### `breakParent`
|
||||
|
||||
```ts
|
||||
|
||||
Reference in new issue
Block a user