From f20d1cfc01ff2b42a19771b65d4549e171fa6c4b Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Sat, 12 Aug 2023 18:16:20 +0100 Subject: [PATCH] print description only if present --- doc/parse-options.fnl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/parse-options.fnl b/doc/parse-options.fnl index 84beb07..a5e272d 100644 --- a/doc/parse-options.fnl +++ b/doc/parse-options.fnl @@ -61,7 +61,8 @@ (fn print-service [o] (print (.. " * service ``" o.name "``")) - (print (indent 4 (or (extract-text o.description) "(no description)"))) + (match (extract-text o.description) + descr (print (indent 4 descr))) (print) (print (indent 4 "**Service parameters**\n")) (each [_ param (ipairs o.parameters)]