Commit Graph

562 Commits

Author SHA1 Message Date
Liam Newman
504d0450d5 Merge remote-tracking branch 'beautify-web/master' into lib-cleanup 2018-07-06 15:50:28 -07:00
Liam Newman
f63714a1ef Build clean up 2018-07-05 13:26:26 -07:00
Liam Newman
3ac947ec9d Remove lib from git history 2018-07-05 12:44:04 -07:00
L. D. MacKrell
f491716330 Keeps inline comments with closing tag 2018-07-02 15:55:54 -07:00
Liam Newman
6c6fa835c9 Test for increment indent
Fixed #814
2018-06-30 15:46:22 -07:00
Liam Newman
8df34ded0f Another line wrap test
Fixed #1223
2018-06-30 15:16:40 -07:00
Liam Newman
7f0cfda40f Await import() support
Fixed #1228
2018-06-30 14:18:56 -07:00
Liam Newman
42a9c697b7
Merge branch 'master' into wrap-test 2018-06-30 13:05:42 -07:00
Liam Newman
07d746b57c More test for fixed issues
Fixes #882
Fixes #1041
Fixes #1167
Fixes #1184
2018-06-30 13:04:50 -07:00
Liam Newman
48539e2a20 Add line wrap test 2018-06-30 11:34:51 -07:00
Liam Newman
371adf465c
Merge pull request #1297 from cheerypick/master
Add 'aligned' option that align attributes after specific line length…
2018-06-30 10:58:08 -07:00
Liam Newman
82039ac0f0 Changed name to aligned-multiple 2018-06-30 10:51:18 -07:00
Ekaterina
b894ba305d Add 'aligned' option that align attributes after specific line length if wrap line length is set 2018-06-30 10:51:18 -07:00
L. D. MacKrell
b2b7517aeb Fixes :hover for @extend issue 2018-06-30 09:49:27 -07:00
Liam Newman
0963c1464e Update dependencies 2018-06-29 21:09:06 -07:00
Liam Newman
bdb9837076 Minor additional tweaks 2018-06-29 20:45:02 -07:00
Liam Newman
b6b84720d7 Removing complex is_unformatted check 2018-06-29 20:16:52 -07:00
Liam Newman
8b85d77fa9 Cleaned up inline to not need more regex 2018-06-29 19:47:55 -07:00
Liam Newman
aeba0027a0
Merge branch 'master' into format-inline-tags 2018-06-29 16:27:11 -07:00
Liam Newman
43fac5caa3
Merge branch 'master' into 1283-Javascript++OperatorGetsWrongIndentation 2018-06-28 20:23:49 -07:00
L. D. MacKrell
3be5928c6d Fixed incorrect unindent for if else blocks
Fixes #1378
2018-06-28 14:29:16 -07:00
madman-bob
def3cbda79 Add unformatted HTML element tests 2018-06-16 10:27:21 +01:00
madman-bob
49ed021bdd Add inline element tests 2018-06-08 14:17:47 +01:00
madman-bob
683a3ac785 Uncomment previously broken test 2018-06-08 14:17:47 +01:00
madman-bob
0e9ad61dba Add concept of inline HTML tags 2018-06-08 14:16:50 +01:00
madman-bob
468f79a193 Clarify content_unformatted tests
By comparison with textarea, note that <textarea><textarea></textarea></textarea>
is not balanced, as there is actually only one opening tag.
The second is raw text inside the text area.
2018-06-01 11:10:32 +01:00
Elrendio
d16b21ae47 1283 - Javascript ++ Operator Gets Wrong Indentation
Resolves #1283

**What was done:**
 - Adapted function print_newline to restore mode if last_test was operator ++ or --
 - Added corresponding test.

**Example of behavior:**
== Input ==
{this.foo++
bar}

== Expexted Output ==
{
    this.foo++
    bar
}

== Unchanged ==
axios.interceptors.request.use(
    config => {
        // loading
        window.store.loading++
        let extraParams = {}
    }
)
2018-05-25 10:45:45 +02:00
Liam Newman
56a6270bc0 Handle null input strings
Fixes #1120
2018-05-21 15:20:10 -07:00
andreyvolokitin
35dc66afa3 Reset line length count only when actually wrapping 2018-05-11 16:55:50 -07:00
Liam Newman
6ed2116c4c
Merge pull request #1303 from thejoshwolfe/bigint
Add support for BigInt literals in JavaScript
2018-05-11 16:29:34 -07:00
Liam Newman
eaeab28757 Add tests for BigInt 2018-05-11 16:19:27 -07:00
Liam Newman
5329720021 Support dynamic import
Fixes #1393
2018-05-11 16:03:25 -07:00
Liam Newman
01111faed5 Rearrange expression start formatting code 2018-05-11 15:28:45 -07:00
Liam Newman
35e2a550d4 Add tests and tweaks for newline rules and comments
Fixes #531
Fixes #857
2018-05-09 14:15:42 -07:00
Liam Newman
2c514e3daf Remove WSEat tracking 2018-05-08 23:10:26 -07:00
Liam Newman
4b1748190d Add newline preservation after inline comments 2018-05-08 22:43:27 -07:00
Liam Newman
66383d7938 Added some newline tests 2018-05-07 18:56:25 -07:00
Liam Newman
aa1b498e43
Merge branch 'master' into bigint 2018-03-22 13:53:11 -07:00
Liam Newman
cfafd3dff1
Merge branch 'master' into master 2018-03-22 13:52:42 -07:00
Liam Newman
472bf83a97 Added #1156 to python implementation 2018-03-15 11:10:09 -07:00
Yu Luo
2274c7804f add tests for less mixins. see pr:1359
Change-Id: Ibf054a8aa345e1d7f30691e19246d8bcab0a12a0
2018-03-15 12:17:35 +08:00
Yu Luo
d74c157e13 issue-1156:fixed line break in mixins after background url
Change-Id: I91fa77493eafb9de820eba802529dcf84ddd0170
2018-03-12 17:57:21 +08:00
Liam Newman
a475e310f9
Merge branch 'master' into master 2018-03-01 16:09:42 -08:00
Liam Newman
ab9e662e60
Merge branch 'master' into bigint 2018-03-01 16:04:06 -08:00
Liam Newman
5b140effb8 Use Regex for tag whitespace detection 2018-03-01 14:36:54 -08:00
Sergio Vallejo
fcb6085fdc Fix multiline tags with line break before whitespace 2018-02-18 18:34:17 -03:00
Sergio Vallejo
6fc32ad105 Prevent indent after PHP echo tag (<?= ... ?> 2018-02-13 17:35:09 -03:00
Liam Newman
8faeb1d107 Prevent exception during anchor tag
Fixes #1202
2018-01-22 16:59:55 -08:00
Josh Wolfe
7226f3dd50 tokenize js bigint literals 2017-12-13 12:53:50 -07:00
amandabot
ffd503c23a Maintain comment positions with all configs
Ensures comments are followed by a new line even when preserve_newlines is off
2017-11-28 21:15:06 -05:00