Fix bug introduced with randomization
authorBenjamin Auder <benjamin.auder@somewhere>
Wed, 31 Jan 2018 01:41:08 +0000 (02:41 +0100)
committerBenjamin Auder <benjamin.auder@somewhere>
Wed, 31 Jan 2018 01:41:08 +0000 (02:41 +0100)
parser.js

index ba113e5..51a05e0 100644 (file)
--- a/parser.js
+++ b/parser.js
@@ -261,7 +261,7 @@ class ErDiags
                                if (Math.random() < 0.5)
                                        mcdDot += e.name + ':name -- ' + name;
                                else
-                                       mcdDot += name + ':name -- ' + e.name;
+                                       mcdDot += name + ' -- ' + e.name + ':name';
                                mcdDot += '[label="' + ErDiags.CARDINAL[e.card] + '"];\n';
                        });
                        if (!!a.attributes)