ATLAS Offline Software
Namespaces | Variables
makeTOC.py File Reference

Go to the source code of this file.

Namespaces

 makeTOC
 

Variables

string makeTOC.inFile = "README.md"
 
 makeTOC.f = open(inFile)
 
list makeTOC.regularLines = []
 
list makeTOC.tocLines = []
 
bool makeTOC.afterBreak = False
 
bool makeTOC.afterTOC = False
 
bool makeTOC.inCodeBlock = False
 
 makeTOC.header = line.split('#')[-1].strip()
 
string makeTOC.tag = '#'+header.lower().replace(" ","-").replace(",","").replace("?","").replace("(","").replace(")","").replace("/","")
 
 makeTOC.nIndents = line.count('#')
 
string makeTOC.tocLine = ""
 
 makeTOC.fOut = open (inFile+".tmp",'w')