git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] docs/pretty-formats: stress that %- removes all preceding line-feeds

From
SZEDER Gábor <szeder.dev@gmail.com>
Date
Jun 15, 2017, 10:36 UTC
Message-ID
<20170615103607.11119-1-szeder.dev@gmail.com>
Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com>
---

A mere plural "line-feeds" was too subtle for me to grasp on first (and second...) reading.

 Documentation/pretty-formats.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Documentation/pretty-formats.txt b/Documentation/pretty-formats.txt
index 38040e95b..a48d267e2 100644
--- a/Documentation/pretty-formats.txt
+++ b/Documentation/pretty-formats.txt
@@ -213,8 +213,8 @@ If you add a `+` (plus sign) after '%' of a placeholder, a line-feed
 is inserted immediately before the expansion if and only if the
 placeholder expands to a non-empty string.
 
-If you add a `-` (minus sign) after '%' of a placeholder, line-feeds that
-immediately precede the expansion are deleted if and only if the
+If you add a `-` (minus sign) after '%' of a placeholder, all consecutive
+line-feeds immediately preceding the expansion are deleted if and only if the
 placeholder expands to an empty string.
 
 If you add a ` ` (space) after '%' of a placeholder, a space
-- 
2.13.1.505.g7cc9fcafb
Next: Jonathan Nieder
Message 1 of 2 in “docs/pretty-formats: stress that %- removes all preceding line-feeds”
  1. docs/pretty-formats: stress that %- removes all preceding line-feedsSZEDER Gábor, Jun 15, 2017
  2. Jonathan NiederJun 16, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.