lib/generators.toPretty: Only quote attribute names if necessary
This commit is contained in:
+1
-1
@@ -227,7 +227,7 @@ rec {
|
||||
else "{ "
|
||||
+ libStr.concatStringsSep " " (libAttr.mapAttrsToList
|
||||
(name: value:
|
||||
"${toPretty args name} = ${toPretty args value};") v)
|
||||
"${libStr.escapeNixIdentifier name} = ${toPretty args value};") v)
|
||||
+ " }"
|
||||
else if isFunction v then
|
||||
let fna = lib.functionArgs v;
|
||||
|
||||
Reference in New Issue
Block a user