git.iko.soy/typeable/nixpkgs
on master help sign in
doc: Fixes documented default option for `<name>` for submodules. (#40464)

Fixes #40463 This is related to change 1d56d0c8a79334cd7149fd580512046558eaac78

commit136f1c470665a9328bb4120f3a4d9af774dadb2d authorSamuel Dionne-Riel <samuel@dionne-riel.com> dateWed 16 May 2018, 12:11 (9 years ago) parent4fbd5a6
1 file changed+7−1
lib/types.nix+7−1
lib/types.nix+7−1
@@ -372,7 +372,13 @@ rec {
372372 # This is mandatory as some option declaration might use the
373373 # "name" attribute given as argument of the submodule and use it
374374 # as the default of option declarations.
375− args.name = "&lt;name&gt;";
375+ #
376+ # Using lookalike unicode single angle quotation marks because
377+ # of the docbook transformation the options receive. In all uses
378+ # &gt; and &lt; wouldn't be encoded correctly so the encoded values
379+ # would be used, and use of `<` and `>` would break the XML document.
380+ # It shouldn't cause an issue since this is cosmetic for the manual.
381+ args.name = "‹name›";
376382 }).options;
377383 getSubModules = opts';
378384 substSubModules = m: submodule m;