mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			26 lines
		
	
	
	
		
			661 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
	
		
			661 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
| #! /bin/sh
 | |
| #  -*- ksh -*-
 | |
| 
 | |
| # This script *helps* locate lines of normal content that end in '}';
 | |
| # this is useful since LaTeX2HTML (at least the old version that we
 | |
| # use) breaks on many lines that end that way.
 | |
| #
 | |
| # Usage: cklatex files... | less
 | |
| #
 | |
| # *Read* the output looking for suspicious lines!
 | |
| 
 | |
| grep -n "[^ 	]}\$" $@ | \
 | |
|  grep -v '\\begin{' | \
 | |
|  grep -v '\\end{' | \
 | |
|  grep -v '\\input{' | \
 | |
|  grep -v '\\documentclass{' | \
 | |
|  grep -v '\\title{' | \
 | |
|  grep -v '\\chapter{' | \
 | |
|  grep -v '\\chapter\*{' | \
 | |
|  grep -v '\\section{' | \
 | |
|  grep -v '\\subsection{' | \
 | |
|  grep -v '\\subsubsection{' | \
 | |
|  grep -v '\\sectionauthor{' | \
 | |
|  grep -v '\\moduleauthor{'
 | |
| 
 | |
| exit $?
 | 
