manual: fix formatting for options with "machine-specific" defaults

This commit is contained in:
Rahul Butani 2022-02-15 15:44:05 -06:00
parent 94992a9196
commit d82cf4a016
No known key found for this signature in database
GPG key ID: 1C7CE491479FA273

View file

@ -20,7 +20,7 @@ concatStrings (map
# JSON, but that converts to "{ }" here.
(if isAttrs option.value then "`\"\"`"
else "`" + toString option.value + "`")) + "\n\n"
else " **Default:** *machine-specific*")
else " **Default:** *machine-specific*\n")
+ (if option.aliases != []
then " **Deprecated alias:** " + (concatStringsSep ", " (map (s: "`${s}`") option.aliases)) + "\n\n"
else "")