From: Benjamin Auder Date: Wed, 31 Jan 2018 01:41:08 +0000 (+0100) Subject: Fix bug introduced with randomization X-Git-Url: https://git.auder.net/doc/html/css/current/pieces/scripts/mini-custom.min.css?a=commitdiff_plain;h=eabe4071112a744a7be577263013a9bb0e4eb524;p=erdiag.git Fix bug introduced with randomization --- diff --git a/parser.js b/parser.js index ba113e5..51a05e0 100644 --- 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)