* Allow literal examples to be included in the manual.
svn path=/nixpkgs/trunk/; revision=29024
This commit is contained in:
		
							parent
							
								
									1e6eeb9ad7
								
							
						
					
					
						commit
						d7b4b63f4d
					
				@ -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; };
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user