mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 13:29:12 +00:00 
			
		
		
		
	Added labels to "help -write-tex-command-reference-manual" output
This commit is contained in:
		
							parent
							
								
									ebb155b2d5
								
							
						
					
					
						commit
						6a38e767ba
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -389,9 +389,11 @@ struct HelpPass : public Pass {
 | 
			
		|||
		size_t begin = text.find_first_not_of("\n"), end = text.find_last_not_of("\n");
 | 
			
		||||
		if (begin != std::string::npos && end != std::string::npos && begin < end)
 | 
			
		||||
			text = text.substr(begin, end-begin+1);
 | 
			
		||||
		std::string cmd_unescaped = cmd;
 | 
			
		||||
		escape_tex(cmd);
 | 
			
		||||
		escape_tex(title);
 | 
			
		||||
		fprintf(f, "\\section{%s -- %s}\n", cmd.c_str(), title.c_str());
 | 
			
		||||
		fprintf(f, "\\label{cmd:%s}\n", cmd_unescaped.c_str());
 | 
			
		||||
		fprintf(f, "\\begin{lstlisting}[numbers=left,frame=single]\n");
 | 
			
		||||
		fprintf(f, "%s\n\\end{lstlisting}\n\n", text.c_str());
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue