[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[COMMITTED] pk-help: print synopsis only if it is defined
From: |
Jose E. Marchesi |
Subject: |
[COMMITTED] pk-help: print synopsis only if it is defined |
Date: |
Sun, 02 Jan 2022 00:44:44 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
2022-01-02 Jose E. Marchesi <jemarch@gnu.org>
* poke/pk-help.pk (pk_help): Print synopsis only if it is actually
present.
---
ChangeLog | 5 +++++
poke/pk-help.pk | 3 ++-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 67da9bf7..ab5f74ea 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2022-01-02 Jose E. Marchesi <jemarch@gnu.org>
+
+ * poke/pk-help.pk (pk_help): Print synopsis only if it is actually
+ present.
+
2021-12-31 Jose E. Marchesi <jemarch@gnu.org>
* DEV-NEWS: Remove file.
diff --git a/poke/pk-help.pk b/poke/pk-help.pk
index 6d815b4a..c6a45b84 100644
--- a/poke/pk-help.pk
+++ b/poke/pk-help.pk
@@ -97,7 +97,8 @@ fun pk_help = (string topic) void:
if (entry.description != "")
{
try {
- printf "\nSynopsis:\n\n %s\n\n", entry.synopsis;
+ if (entry.synopsis != "")
+ printf "\nSynopsis:\n\n %s\n\n", entry.synopsis;
} catch if E_elem {}
printf ("%s\n", entry.description);
}
--
2.11.0
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [COMMITTED] pk-help: print synopsis only if it is defined,
Jose E. Marchesi <=