print description only if present

module-based-network
Daniel Barlow 2023-08-12 18:16:20 +01:00
parent e039783e67
commit f20d1cfc01
1 changed files with 2 additions and 1 deletions

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