mkRedundantOption: use multi-line string with html
This commit is contained in:
1 file changed
+13
-1
@@ -55,7 +55,19 @@
|
|||||||
|
|
||||||
mkRedundantOption = name: value: attrs: lib.mkOption {
|
mkRedundantOption = name: value: attrs: lib.mkOption {
|
||||||
inherit (attrs) type default;
|
inherit (attrs) type default;
|
||||||
description = "${attrs.description}\n\n\<div class=admonition-warning>\<p class=admonition-title>Redundant\</p>\<p>${mkRedundantOptionDescription name value}\</p>\</div>";
|
description = ''
|
||||||
|
${attrs.description}
|
||||||
|
|
||||||
|
|
||||||
|
<div class=admonition-warning>
|
||||||
|
<p class=admonition-title>
|
||||||
|
Redundant
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
${mkRedundantOptionDescription name value}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user