Merge pull request #942 from knsv/bugfix_941

Bugfix 941
This commit is contained in:
Knut Sveidqvist 2019-09-19 23:19:32 +02:00 committed by GitHub
commit b1d137770c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -283,7 +283,7 @@ export const bindFunctions = function(element) {
});
};
export const getDirection = function() {
return direction;
return direction.trim();
};
/**
* Retrieval function for fetching the found nodes after parsing has completed.

View File

@ -20,7 +20,7 @@
"classDef" return 'CLASSDEF';
"class" return 'CLASS';
"click" return 'CLICK';
"graph" {if(yy.lex.firstGraph()){this.begin("dir");console.log('First graph')} return 'GRAPH';}
"graph" {if(yy.lex.firstGraph()){this.begin("dir");} return 'GRAPH';}
"subgraph" return 'subgraph';
"end"\b\s* return 'end';
<dir>\s*"LR" { this.popState(); return 'DIR'; }