mirror of
				https://github.com/python/cpython.git
				synced 2025-10-30 21:21:22 +00:00 
			
		
		
		
	add support for \e to the {alltt} environment
This commit is contained in:
		
							parent
							
								
									d311f1fb9b
								
							
						
					
					
						commit
						29f5933fcb
					
				
					 2 changed files with 3 additions and 1 deletions
				
			
		|  | @ -790,7 +790,8 @@ This \UNIX\ is also followed by a space. | |||
| 
 | ||||
|     \begin{macrodesc}{e}{} | ||||
|       Produces a backslash.  This is convenient in \macro{code}, | ||||
|       \macro{file}, and similar macros, and is only defined there.  To | ||||
|       \macro{file}, and similar macros, and the \env{alltt} | ||||
|       environment, and is only defined there.  To | ||||
|       create a backslash in ordinary text (such as the contents of the | ||||
|       \macro{citetitle} macro), use the standard \macro{textbackslash} | ||||
|       macro. | ||||
|  |  | |||
|  | @ -236,6 +236,7 @@ | |||
|   % Calculate the text width for the minipage: | ||||
|   \setlength{\py@codewidth}{\linewidth}% | ||||
|   \addtolength{\py@codewidth}{-\parindent}% | ||||
|   \let\e=\textbackslash% | ||||
|   % | ||||
|   \par\indent% | ||||
|   \begin{minipage}[t]{\py@codewidth}% | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Fred Drake
						Fred Drake