From e733caa892b4ac28f33ca67997e2686d08108367 Mon Sep 17 00:00:00 2001 From: Leo Vivier Date: Thu, 25 Jul 2019 22:16:41 +0200 Subject: Rephrase & Make --- doc/ranger.1 | 11 ++++------- doc/ranger.pod | 11 ++++------- 2 files changed, 8 insertions(+), 14 deletions(-) (limited to 'doc') diff --git a/doc/ranger.1 b/doc/ranger.1 index 10a5e765..c5bef68f 100644 --- a/doc/ranger.1 +++ b/doc/ranger.1 @@ -433,13 +433,10 @@ the end of the line automatically. .PP To write a literal %, you need to escape it by writing %%. .PP -For adding a space character after a chained command, you also need to escape -% by writing %% instead: - chain command1 %%space; command2 -.PP -This is because the chain command is a macro-expanding command itself. In the -previous example, chain expands %%space to \f(CW%space\fR, which is then expanded to -the space character by command1. +Note that macros are expanded twice when using chain. For example, to insert +a space character in a chained command, you would write %%space. This is +because the chain command is a macro-expanding command itself. + chain command1; command2%%space .SS "\s-1BOOKMARKS\s0" .IX Subsection "BOOKMARKS" Type \fBm\fR to bookmark the current directory. You can re-enter this diff --git a/doc/ranger.pod b/doc/ranger.pod index fc385334..e178bf04 100644 --- a/doc/ranger.pod +++ b/doc/ranger.pod @@ -328,13 +328,10 @@ the end of the line automatically. To write a literal %, you need to escape it by writing %%. -For adding a space character after a chained command, you also need to escape -% by writing %% instead: - chain command1 %%space; command2 - -This is because the chain command is a macro-expanding command itself. In the -previous example, chain expands %%space to %space, which is then expanded to -the space character by command1. +Note that macros are expanded twice when using chain. For example, to insert +a space character in a chained command, you would write %%space. This is +because the chain command is a macro-expanding command itself. + chain command1; command2%%space =head2 BOOKMARKS -- cgit 1.4.1-2-gfad0