diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2024-02-06 01:52:45 +0300 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2024-02-06 01:52:45 +0300 |
commit | 37eef3cf0ab0b0ed3dabc1c96515f4e30011f9db (patch) | |
tree | 26e64b3214c74803f8322fcd543890d20c809e38 | |
parent | 3e6446249be73d992d657feb9dfba43e8152c40c (diff) | |
download | sciteco-37eef3cf0ab0b0ed3dabc1c96515f4e30011f9db.tar.gz |
avoid Groff warnings due to `\` escapes
* It's generally a bad idea to pass backslashes as a glyph in macro arguments, even as `\\`
since this could easily be interpreted as an escape.
* Instead we now always use `\[rs]`.
-rw-r--r-- | doc/sciteco.7.template | 2 | ||||
-rw-r--r-- | src/core-commands.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/doc/sciteco.7.template b/doc/sciteco.7.template index cbfc512..4d4ed55 100644 --- a/doc/sciteco.7.template +++ b/doc/sciteco.7.template @@ -1630,7 +1630,7 @@ When \fB^V\fP is not followed by \fB^V\fP, a single character .BI ^W c Analogous to \fB^V\fP, but upper-cases characters. .TP -.SCITECO_TOPIC ^E\\ ^E\\q +.SCITECO_TOPIC ^E\[rs] ^E\[rs]q .BI ^E\(rs q Expands to the formatted number stored in the numeric part of Q-Register \fIq\fP. diff --git a/src/core-commands.c b/src/core-commands.c index bfec8be..d959f10 100644 --- a/src/core-commands.c +++ b/src/core-commands.c @@ -165,7 +165,7 @@ teco_state_start_range(teco_machine_main_t *ctx, GError **error) teco_expressions_push(teco_interface_ssm(SCI_GETLENGTH, 0, 0)); } -/*$ "\\" +/*$ \[rs] * n\\ -- Insert or read ASCII numbers * \\ -> n * @@ -2100,7 +2100,7 @@ teco_state_ecommand_flags(teco_machine_main_t *ctx, GError **error) * You have been warned. Good luck. * .IP 4 * The column after the last horizontal movement. - * This is only used by \fCfnkeys.tes\fP and is similar to the Scintilla-internal + * This is only used by \fBfnkeys.tes\fP and is similar to the Scintilla-internal * setting \fBSCI_CHOOSECARETX\fP. * Unless most other settings, this is on purpose not restored on rubout, * so it "survives" command line replacements. |