Skip to contentSkip to conversation

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

PATCH In review SZEDER Gábor 2 participants 2 messages Jun 15, 2017 – Jun 16, 2017 Documentation

lore
Share & tools
lore
#0 lore raw

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

---

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(-)
Documentation/pretty-formats.txt +2 -2
index 38040e95b..a48d267e2 100644
@@ -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
Signature · 1 line
2.13.1.505.g7cc9fcafb
Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · SZEDER Gábor

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

This could go in the commit message.

Quoted 2 lines
 Documentation/pretty-formats.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

With or without such a tweak,

Thanks.

Quoted 15 lines
Documentation/pretty-formats.txt +2 -2
index 38040e95b..a48d267e2 100644
@@ -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