* Allow literal examples to be included in the manual.

svn path=/nixpkgs/trunk/; revision=29024
This commit is contained in:
Eelco Dolstra 2011-09-05 10:14:24 +00:00
parent 1e6eeb9ad7
commit d7b4b63f4d

View file

@ -287,5 +287,12 @@ rec {
else if isAttrs x then mapAttrs (n: v: scrubOptionValue v) (removeAttrs x ["_args"])
else x;
/* For use in the example option attribute. It causes the given
text to be included verbatim in documentation. This is necessary
for example values that are not simple values, e.g.,
functions. */
literalExample = text: { _type = "literalExample"; inherit text; };
}