                 }
             case "a", "A": // arc e.g. a 100 100 25 180 270 1
                 if instructions.count <= instructionStartIndex+6 {
-                    print("Encountered incomplete a or A path instruction")
+                    print("Encountered incomplete a or A path instruction", terminator: "\n")
                     break
                 }
                 let xCenterStr = instructions[instructionStartIndex+1]

                CGPathCloseSubpath(pathRef)
                instructionStartIndex = instructionStartIndex + 2
            default:
                print("Failed to process path instruction")
            }
        }
        return pathRef

            switch instruction {
            case "M": // moveto (absolute) e.g. M 250 550
                if instructions.count <= instructionStartIndex+2 {
                    print("Encountered incomplete M path instruction", terminator: "\n")
                    break
                }
                let xStr = instructions[instructionStartIndex+1]
