ATLAS Offline Software
Loading...
Searching...
No Matches
makeTOC.py File Reference

Go to the source code of this file.

Namespaces

namespace  makeTOC

Variables

str 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()
str makeTOC.tag = '#'+header.lower().replace(" ","-").replace(",","").replace("?","").replace("(","").replace(")","").replace("/","")
 makeTOC.nIndents = line.count('#')
str makeTOC.tocLine = ""
 makeTOC.fOut = open (inFile+".tmp",'w')