def addNode(self, nodeName, manualName, fileName):
global returnCode
# print "Node: ", nodeName, " in ", manualName, " found in ", fileName
+ if "\\" in nodeName:
+ returnCode = 1
+ print "nodeName: ", nodeName, " in ", fileName, " contains backslash"
if manualName+"/"+nodeName in self.Nodes.keys():
print "Error: Duplicate nodename ",nodeName, " in ", fileName, " and ", self.Nodes[manualName+"/"+nodeName][1]
returnCode=1
self.nodeNames[nodeName] = fileName
def addRef(self, toManualName, toHeading, inFileName):
+ global returnCode
+ if "\\" in toHeading:
+ returnCode = 1
+ print "ref to: ", toHeading, " in ", inFileName, " contains backslash"
# if inFileName == "notation/vocal.itely":
# print "Ref to ", toManualName, "/",toHeading, " found in ", inFileName
self.Refs.append([toManualName + "/" + toHeading, inFileName])
topFile.read(crossRefs)
crossRefs.check()
if returnCode > 0:
- print "Errors found: status code: ",returnCode
\ No newline at end of file
+ print "Errors found: status code: ",returnCode