aboutsummaryrefslogtreecommitdiff
path: root/src/helpformaction.cpp
diff options
context:
space:
mode:
authorGravatar Dennis van der Schagt <dennisschagt@gmail.com> 2021-04-03 12:01:58 +0200
committerGravatar Dennis van der Schagt <dennisschagt@gmail.com> 2021-04-04 21:58:50 +0200
commit8aed653b6a43a0385de2317511906c492cf305cc (patch)
treeb1cf401bc3f9bf7a6524ad2fc0fa00aa1e2c5cde /src/helpformaction.cpp
parent683b7bca63b5158d9660f2593b96a2d13161815a (diff)
downloadnewsboat-8aed653b6a43a0385de2317511906c492cf305cc.tar.gz
newsboat-8aed653b6a43a0385de2317511906c492cf305cc.tar.zst
newsboat-8aed653b6a43a0385de2317511906c492cf305cc.zip
Mention "macro-prefix" in help form; Reduce amount of whitespace
Diffstat (limited to '')
-rw-r--r--src/helpformaction.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/helpformaction.cpp b/src/helpformaction.cpp
index b95ca78c..15f0544f 100644
--- a/src/helpformaction.cpp
+++ b/src/helpformaction.cpp
@@ -183,10 +183,9 @@ void HelpFormAction::prepare()
for (const auto& macro : macros) {
const std::string key = macro.first;
const std::string description = macro.second.description;
- const std::string prefix = _("prefix-key");
- const std::string filler = std::string(std::max(0, 36 - (int)prefix.length()), ' ');
- std::string line = strprintf::fmt("<%s>%s%s %s", prefix, key, filler, description);
+ // "macro-prefix" is not translated because it refers to an operation name
+ std::string line = strprintf::fmt("<macro-prefix>%s %s", key, description);
line = utils::quote_for_stfl(line);
line = apply_highlights(line);
listfmt.add_line(line);