-
Notifications
You must be signed in to change notification settings - Fork 863
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update text block formatting after nickreid's improvements in unknown…
… commit Previously the formatting was adding a forced break at the beginning of text blocks, which caused issues like #1081. With the changes in the baseline CL it correctly handles the 'width' of text blocks containing newlines as infinity, instead of counting the number of characters and treating the newline as having width 1. Fixes #1081 PiperOrigin-RevId: 620933964
- Loading branch information
Showing
3 changed files
with
25 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,4 +40,15 @@ class RSLs { | |
lorem | ||
ipsum | ||
"""; | ||
{ | ||
f(""" | ||
lorem | ||
ipsum | ||
""", 42); | ||
|
||
""" | ||
hello %s | ||
""" | ||
.formatted("world"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,4 +51,18 @@ ipsum | |
lorem | ||
ipsum | ||
"""; | ||
|
||
{ | ||
f( | ||
""" | ||
lorem | ||
ipsum | ||
""", | ||
42); | ||
|
||
""" | ||
hello %s | ||
""" | ||
.formatted("world"); | ||
} | ||
} |