Fix relatwed to issue number #54 - % in text

This commit is contained in:
knsv
2015-01-24 19:33:10 +01:00
parent d0428d492b
commit 6612b3e01e
14 changed files with 135 additions and 38 deletions

View File

@@ -188,7 +188,11 @@ exports.getClasses = function (text, isDot) {
parser.yy = graph;
// Parse the graph definition
parser.parse(text);
try{
parser.parse(text);
}
catch(err){
}
var classDefStylesObj = {};
var classDefStyleStr = '';
@@ -222,7 +226,13 @@ exports.draw = function (text, id,isDot) {
parser.yy = graph;
// Parse the graph definition
parser.parse(text);
try{
parser.parse(text);
}
catch(err){
}
// Fetch the default direction, use TD if none was found
var dir;
@@ -417,4 +427,5 @@ exports.draw = function (text, id,isDot) {
i = i + 1;
});
},200);
};
};