From 37eef3cf0ab0b0ed3dabc1c96515f4e30011f9db Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Tue, 6 Feb 2024 01:52:45 +0300 Subject: 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]`. --- doc/sciteco.7.template | 2 +- 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. -- cgit v1.2.3