print description only if present

This commit is contained in:
Daniel Barlow 2023-08-12 18:16:20 +01:00
parent e039783e67
commit f20d1cfc01

View file

@ -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)]