2434 Commits

Author SHA1 Message Date
Liam Newman
cd574fcb6f Update Changelog 2019-05-01 17:48:44 -07:00
Liam Newman
d6bb56cca5 Support for case with curly braces
Fixes #1357
2019-05-01 17:28:37 -07:00
Liam Newman
d299a74670 Add tests for #1233
Fixes #1233
2019-05-01 16:10:09 -07:00
Liam Newman
a4aa9bb079 Fix css escaping
Fixes #1667
2019-05-01 15:37:34 -07:00
Liam Newman
e60611044b Add templating language config option
1.9.x added better support for templating and turned it on for
Javascript by default. This caused formatting problems for code bases that
included template markers inside strings.

This change adds a templating option to control which languages are
recognized.  This setting defaults to "auto".  For JavaScript
"auto" means no templating languages, for HTML (and embedded script),
"auto" means all of them.  This basically preserves the existing
behavior before 1.9.x.

Fixes #1647
2019-04-30 10:11:52 -07:00
Liam Newman
caac81e7fb Do not repeat comments with indented empty line
Fixes #1663
2019-04-28 23:14:21 -07:00
Liam Newman
0cea554f21
Merge pull request #1664 from HanabishiRecca/master
LESS mixin fix
2019-04-27 19:51:10 -07:00
Liam Newman
880994c07c
Merge pull request #1662 from bitwiseman/comment-wrapping
Comment wrapping
2019-04-27 19:15:42 -07:00
Liam Newman
12c476d997 Fix paren indenting 2019-04-27 19:14:13 -07:00
Liam Newman
737b425ad2 Add tests 2019-04-23 10:19:50 -07:00
Liam Newman
fa82fbc650
Merge branch 'master' into comment-wrapping 2019-04-23 09:55:30 -07:00
Liam Newman
6c831fa8f7
Merge branch 'master' into master 2019-04-22 12:39:25 -07:00
Hanabishi
abbf06e13f CSS non-negative 'parenLevel' 2019-04-23 00:03:18 +05:00
Liam Newman
19c8251b5c Security fixes 2019-04-22 11:57:46 -07:00
Hanabishi
ed7138e598 LESS pseudoclass inside a mixin fix 2019-04-22 17:59:35 +05:00
Hanabishi
c374263b5a LESS mixin fix 2019-04-21 02:07:29 +05:00
Liam Newman
ff25fa565c Only recognize html comments as wrappers for javascript 2019-04-16 12:27:06 -07:00
Liam Newman
3296dd0d85 Support wrapping script and style content
Content inside style and script tags can be wrapped in comment or
cdata to allow the text to contain characters and string that
would otherwise not be allowed in html.

Before this change the html beautifier would not see the wrappers.
This meant that it could incorrectly terminate script or style
tags. It also meant that the wrapper would be passed to child
beautifiers and they would have to handle them.

This change makes the html beautfier recognize the wrappers and
correctly handle formatting of them itself. The child beautifiers
see only the content not the wrapper.

Fixes #1641
2019-04-16 12:27:05 -07:00
Liam Newman
d88c6a6462 Releases start and end on master 2019-04-15 09:51:31 -07:00
Hanabishi
83edf549a6 Packages update
(finally resolved vulnerability in mocha)
2019-04-12 08:35:45 -07:00
Hanabishi
a5237a7036 Declare 'indent_empty_lines' in default_options 2019-04-12 08:35:45 -07:00
Hanabishi
c2443b161d Rebuild dependency tree due to vulnerability
https://www.npmjs.com/advisories/788
2019-04-12 08:35:45 -07:00
Hanabishi
a94020125c Changed css tests to use 4 space indenting instead of tabs 2019-04-12 08:35:45 -07:00
Liam Newman
2ab93fbe6b
Merge pull request #1660 from charmis/patch-1
Removed duplicate "and"
2019-04-12 08:31:24 -07:00
Charmis Varghese
72df3f77fe
Removed duplicate "and" 2019-04-12 10:45:20 -04:00
Liam Newman
08c18a5fe7
Merge pull request #1654 from kalbasit/nixpkgs_fix-js-beautifier
Fix python test-packer
2019-04-11 23:18:11 -07:00
Liam Newman
1c07934239
Merge branch 'master' into nixpkgs_fix-js-beautifier 2019-04-11 18:21:58 -07:00
Liam Newman
792294b7ca Further cleanup of python test 2019-04-11 18:12:40 -07:00
Liam Newman
6361c4c738
Merge pull request #1659 from asteinha/master
Fixing https://github.com/beautify-web/js-beautify/issues/1658
2019-04-11 17:41:03 -07:00
asteinha
7400264bf3 Fixing test sources. 2019-04-12 02:09:37 +02:00
asteinha
cc8a5ffdf6 Regression test. 2019-04-11 12:47:22 -04:00
asteinha
7053d112b0 Formatting consistent with the rest of the file. 2019-04-10 17:19:05 -04:00
asteinha
7c322a5bcc Continuation line additional indentation. 2019-04-10 17:05:08 -04:00
asteinha
6feb0de2ae Fixing https://github.com/beautify-web/js-beautify/issues/1658 2019-04-10 16:58:35 -04:00
Liam Newman
b39567226e
Merge branch 'master' into nixpkgs_fix-js-beautifier 2019-04-08 15:10:57 -07:00
Liam Newman
25f56a2a4b
Merge pull request #1656 from averydev/allow-escape-exclamation
stop reformatting valid css \! into invalid \ !
2019-04-08 15:03:19 -07:00
Avery Bloom
8b59d00266 fix line length 2019-04-07 13:45:41 +09:00
Avery Bloom
7111267cf8 stop reformatting valid css \! into invalid \ ! 2019-04-07 13:30:10 +09:00
Wael M. Nasreddine
78e35a11cb
Fix python test-packer 2019-03-31 21:01:33 -07:00
Liam Newman
d869f9dc26 Bump version numbers for 1.9.1 2019-03-25 14:35:27 -07:00
Liam Newman
d5226298d7 Update Changelog 2019-03-25 14:32:02 -07:00
Liam Newman
7532d55213
Merge pull request #1645 from HanabishiRecca/master
New option: indent_empty_lines
2019-03-25 13:45:14 -07:00
HanabishiRecca
ad8d6aeb1e Option in web version
+ some fixes of HTML by the W3 validator
2019-03-25 13:21:45 -07:00
HanabishiRecca
3dea2824bf CLI option & readme update 2019-03-25 13:21:45 -07:00
HanabishiRecca
3470ea5013 CSS & HTML tests 2019-03-25 13:21:06 -07:00
HanabishiRecca
212fe615e6 Additional tests 2019-03-25 13:21:06 -07:00
HanabishiRecca
e1ec2322eb Implemented Makefile "alltest" flag
Flag was presented in "help" but wasn't implemented
2019-03-25 13:21:06 -07:00
HanabishiRecca
8f9d86947f Option renamed
preserve_empty_lines_indent -> indent_empty_lines
2019-03-25 13:21:06 -07:00
Liam Newman
6db4a03841 Add initial tests 2019-03-25 13:21:06 -07:00
HanabishiRecca
e42c24c007 Fixed test crash due to encoding 2019-03-25 13:21:06 -07:00