]> git.donarmstrong.com Git - lilypond.git/blobdiff - scripts/auxiliar/ref_check.py
Add '-dcrop' option to ps and svg backends
[lilypond.git] / scripts / auxiliar / ref_check.py
index ec6f6b622f40ffee3886474e03adb0609e7cd46c..33a610d9c0bb5873f5faf0bdb4f9d759a5721889 100755 (executable)
@@ -46,6 +46,9 @@ class CrossRefs:
   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
@@ -53,6 +56,10 @@ class CrossRefs:
     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])
@@ -185,4 +192,4 @@ crossRefs = CrossRefs()
 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