From: Benjamin Auder Date: Mon, 10 Dec 2018 15:21:00 +0000 (+0100) Subject: Fix typo 'compact' --> 'graph' for output X-Git-Url: https://git.auder.net/doc/html/%7B%7B%20path%28%27fos_user_resetting_request%27%29%20%7D%7D?a=commitdiff_plain;h=HEAD;p=erdiag.git Fix typo 'compact' --> 'graph' for output --- diff --git a/parser.js b/parser.js index 2919c56..0ab6a43 100644 --- a/parser.js +++ b/parser.js @@ -9,7 +9,7 @@ class ErDiags this.tables = { }; this.mcdParsing(description); this.mldParsing(); - this.output = output || "compact"; + this.output = output || "graph"; this.image = image || "svg"; } @@ -403,7 +403,7 @@ class ErDiags mcdDot += '}'; if (this.output == "graph") //draw graph in element element.innerHTML = ""; - else //just show dot input + else //output = "text": just show dot input element.innerHTML = mcdDot.replace(//g,">"); }