From e61868f1ec8c80dc7866c7a12613030aa3b2c544 Mon Sep 17 00:00:00 2001 From: re6exp Date: Sun, 19 Feb 2017 10:22:11 +0300 Subject: [PATCH 1/2] Support for additional wrap attributes options of js-beautify (html): force-aligned and force-expand-multiline. --- src/languages/html.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/languages/html.coffee b/src/languages/html.coffee index 6fd85bb..8d6746d 100644 --- a/src/languages/html.coffee +++ b/src/languages/html.coffee @@ -56,8 +56,8 @@ module.exports = { wrap_attributes: type: 'string' default: "auto" - enum: ["auto", "force"] - description: "Wrap attributes to new lines [auto|force]" + enum: ["auto", "force", "force-aligned", "force-expand-multiline"] + description: "Wrap attributes to new lines [auto|force|force-aligned|force-expand-multiline]" wrap_attributes_indent_size: type: 'integer' default: defaultIndentSize From 678fc181467f53c7bdbed59f90a36f2568302e35 Mon Sep 17 00:00:00 2001 From: re6exp Date: Sun, 19 Feb 2017 10:22:11 +0300 Subject: [PATCH 2/2] Support for additional wrap attributes options of js-beautify (html): force-aligned and force-expand-multiline. --- CHANGELOG.md | 1 + package.json | 4 ++++ src/languages/html.coffee | 4 ++-- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 32ecf1d..5e58a46 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,5 @@ # dev +- Add support for additional wrap attribute options of js-beautify (html): force-aligned and force-expand-multiline. - Update to `remark`'s new API and fix [#1196](https://github.com/Glavin001/atom-beautify/issues/1196) - Add beautifier for the Lua language. - Add [ocp-indent](https://github.com/OCamlPro/ocp-indent) beautifier for the OCaml language. diff --git a/package.json b/package.json index a91d8a9..992e664 100644 --- a/package.json +++ b/package.json @@ -114,6 +114,10 @@ { "name": "Victor Uriarte", "url": "https://github.com/vmuriart" + }, + { + "name": "Anton Brok-Volchansky", + "url": "https://github.com/re6exp" } ], "engines": { diff --git a/src/languages/html.coffee b/src/languages/html.coffee index 6fd85bb..8d6746d 100644 --- a/src/languages/html.coffee +++ b/src/languages/html.coffee @@ -56,8 +56,8 @@ module.exports = { wrap_attributes: type: 'string' default: "auto" - enum: ["auto", "force"] - description: "Wrap attributes to new lines [auto|force]" + enum: ["auto", "force", "force-aligned", "force-expand-multiline"] + description: "Wrap attributes to new lines [auto|force|force-aligned|force-expand-multiline]" wrap_attributes_indent_size: type: 'integer' default: defaultIndentSize