docs: remove whitespaces from filepaths if any

This commit is contained in:
wolbyte 2023-08-30 17:03:14 +03:30 committed by Gaétan Lepage
parent 8040f8422a
commit 26b202828f

View file

@ -74,7 +74,7 @@ with lib; let
if isOpt
then opts
else filterAttrs (_: component: component.isOption && (isVisible component)) opts;
path = concatStringsSep "/" path;
path = removeWhitespace (concatStringsSep "/" path);
};
components =
@ -147,7 +147,14 @@ with lib; let
components = optionalAttrs (!isOpt) {
${name} = recursiveUpdate opts {
index.path = removeWhitespace (concatStringsSep "/" ((optional (group != "none") group) ++ [opts.index.path]));
index.path =
removeWhitespace
(
concatStringsSep "/"
(
(optional (group != "none") group) ++ [opts.index.path]
)
);
hasComponents = true;
};
};