Skip to content

Commit 8abc09c

Browse files
szedergitster
authored andcommitted
docs/pretty-formats: stress that %- removes all preceding line-feeds
Signed-off-by: SZEDER Gábor <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 95d6787 commit 8abc09c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Documentation/pretty-formats.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,8 @@ If you add a `+` (plus sign) after '%' of a placeholder, a line-feed
213213
is inserted immediately before the expansion if and only if the
214214
placeholder expands to a non-empty string.
215215

216-
If you add a `-` (minus sign) after '%' of a placeholder, line-feeds that
217-
immediately precede the expansion are deleted if and only if the
216+
If you add a `-` (minus sign) after '%' of a placeholder, all consecutive
217+
line-feeds immediately preceding the expansion are deleted if and only if the
218218
placeholder expands to an empty string.
219219

220220
If you add a ` ` (space) after '%' of a placeholder, a space

0 commit comments

Comments
 (0)