diff --git a/README.md b/README.md index 83bd16d..33ea557 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,10 @@ VHDL formatter web online written in javascript ## Release Notes +### 2.4 [2018-02-23] + +- use local storage to store settings + ### 2.3 [2018-02-22] - bugfix "remove non-comment code by mistake" @@ -14,7 +18,7 @@ VHDL formatter web online written in javascript - fix exponential notation - user can choose EOL symbols (or use system's by default) -Many thanks to @MihaiBabiac +Many thanks to [@MihaiBabiac](https://github.com/MihaiBabiac) ### 2.2 [2018-10-16] diff --git a/VHDLFormatter.js b/VHDLFormatter.js index 6eb6d11..d0c670b 100644 --- a/VHDLFormatter.js +++ b/VHDLFormatter.js @@ -110,7 +110,8 @@ function noFormat() { "use_space", "customise_indentation", "compress", - "mix_letter" + "mix_letter", + "cust_eol" ]; var isDisabled = getHTMLInputElement("no_format").checked; elements.forEach(element => { @@ -132,7 +133,6 @@ function noFormat() { radioButtons[i].disabled = isDisabled; } } - getHTMLInputElement("cust_indent").disabled = isDisabled; } function Compress(input) { input = input.replace(/\r\n/g, ''); diff --git a/VHDLFormatter.ts b/VHDLFormatter.ts index d403c61..41eb49a 100644 --- a/VHDLFormatter.ts +++ b/VHDLFormatter.ts @@ -141,7 +141,8 @@ function noFormat() { "use_space", "customise_indentation", "compress", - "mix_letter" + "mix_letter", + "cust_eol" ]; var isDisabled = getHTMLInputElement("no_format").checked; elements.forEach(element => { @@ -163,7 +164,6 @@ function noFormat() { (radioButtons[i]).disabled = isDisabled; } } - getHTMLInputElement("cust_indent").disabled = isDisabled; } function Compress(input: string) { diff --git a/index.html b/index.html index 9e58d4f..8d5dca4 100644 --- a/index.html +++ b/index.html @@ -328,7 +328,7 @@
- +
@@ -340,9 +340,14 @@
(tab is \t) - ( + ( four blankspaces) +
+ End of line: + ( + one \r & one \n) +
@@ -351,11 +356,6 @@
-
- End of line: - ( - one \r & one \n) -
@@ -421,12 +421,74 @@