Einar Lielmanis
0dd8105ebd
Add link to Dither's Opera addon
2011-03-25 22:50:17 +02:00
Einar Lielmanis
f479ead4ce
Remove -e parameter from *-cl ("-b expand" now)
2011-03-24 06:03:38 +02:00
Einar Lielmanis
bcc57d0c8f
Fix a minor html typo
2011-03-23 23:39:45 +02:00
Einar Lielmanis
9a026a2b20
AkelPad beautifier link
2011-03-23 23:24:53 +02:00
Einar Lielmanis
06f4cf024d
style_html obeys brace_style
2011-03-23 22:31:30 +02:00
Einar Lielmanis
246b03a4c9
Fix for single else
...
Input:
if (foo)
bar();
else
baz();
Was:
if (foo) bar();
else
baz();
Is:
if (foo) bar();
else baz();
2011-03-23 22:22:54 +02:00
Einar Lielmanis
a123ba486b
Oops, the patch accidentally the previous commit
2011-03-23 06:16:18 +02:00
Einar Lielmanis
0d22b9f9fc
Alternate brace style patch by Chris J. Shull
2011-03-23 06:07:38 +02:00
Einar Lielmanis
084a997e06
Minor frontpage changes, link to safari extension
2011-03-22 12:54:21 +02:00
Einar Lielmanis
d899f6146d
Fix some braces-on-own-line uglinesses
...
var foo = {}
got destroyed to
var foo =
{
}
braces-on-own-line is quite poorly tested, some regressions are
possible.
2011-03-21 21:00:23 +02:00
Einar Lielmanis
b25aebacc4
Link to Tom's chrome plugin
2011-03-21 07:25:45 +02:00
Einar Lielmanis
f90ce72e86
Remove duplicate is_array function
2011-02-08 23:09:37 +02:00
Einar Lielmanis
098cdbe972
Improve next token behaviour after shebang
2011-02-08 22:29:16 +02:00
Einar Lielmanis
395cc1de45
Do not mess up shebangs
2011-02-08 22:22:58 +02:00
Einar Lielmanis
97732b26d0
Merge branch 'array_objects'
2011-01-31 22:23:29 +02:00
Einar Lielmanis
16c1f228ac
Better format objects in arrays
...
Was:
var o = [{
fu: 'bar'
},
{
bar: 'fu'
}];
Is:
var o = [{
fu: 'bar'
}, {
bar: 'fu'
}];
2011-01-31 22:20:50 +02:00
Einar Lielmanis
f614cc40ad
Merge branch 'newline_preserve'
2011-01-10 08:58:22 +02:00
Einar Lielmanis
39ed891f20
Fix for twiggling newline when !preserve_newlines
...
function foo() {
return 1;
}
function bar() {
return 2;
}
returned with empty line between functions on first run, and removed on
the next run.
2011-01-10 08:56:49 +02:00
Einar Lielmanis
4269a42194
Merge branches 'frontpage', 'returndot' and 'lineglue'
2010-12-31 11:09:34 +02:00
Einar Lielmanis
670933fe73
Fix for broken return .5
...
Input:
return .5
Was:
return.5
Is:
return .5
2010-12-31 11:08:23 +02:00
Einar Lielmanis
91e374c913
Restore paypal button
...
The usefulness of paypal outweighs its evilness, or something.
It turns out that I don't really want to ditch this payment provider,
as I sometimes buy things on ebay, there may be as well the button for
donations.
2010-12-31 10:52:36 +02:00
Einar Lielmanis
03262bc17c
Fix for merged line after "else" statement
...
For semicolon-less javascript, the next line after "else" statement
could get glued to the one before due to ignored newline.
Fix that by resetting flags.if_line to false after "else" word has been
found and processed, so that it could pick up the original newlines.
Input:
if (foo) bar()
else baz()
do_something()
Was:
if (foo) bar()
else baz() do_something()
Now:
if (foo) bar()
else baz()
do_something()
2010-12-31 10:29:04 +02:00
Einar Lielmanis
602d5ddd88
Fix a typo in surname
2010-12-20 18:21:51 +02:00
Einar Lielmanis
eaff2d4a64
Add a link to rhoney's .net beautifier
2010-12-20 18:18:24 +02:00
Einar Lielmanis
b4991387a3
Fix semicolon-less "if" collapsing bug
...
if (a) b()
c()
d()
got collapsed to
if (a) b() c() d()
2010-12-12 21:54:52 +02:00
Einar Lielmanis
9f8e253bca
Fix an ugly regression with division operator
...
(a) / a was borked by a regexp-fixing commit and wasn't caught by the
tests.
Also, slightly harden the second test in bt().
2010-12-12 21:44:50 +02:00
Einar Lielmanis
239db58cd3
Properly reformat if / else
...
Fixes issue #30 that else/catch/finally doesn't get pulled to the previous line:
if (foo)
{
bar();
}
else
{
baz();
}
got reformatted to:
if (foo) {
bar();
}
else { // sic!
baz
}
2010-12-11 09:54:23 +02:00
Einar Lielmanis
1b26617e69
Fix some regexp detection issues
...
As reported by PING, the parser broke on:
variable = //comment
/regex/
Not entirely sure if the commit won't break on some weird division
cases. But, then I'll fix that, tee-hee.
2010-12-11 09:37:39 +02:00
Einar Lielmanis
0d807d094a
Remove border from flattr
...
That's what you get for running opera as main browser
2010-12-11 09:36:34 +02:00
Einar Lielmanis
70d721a67e
Update the failed test
2010-12-09 08:40:15 +02:00
Einar Lielmanis
06ecc1b836
Minor flattery changes, no need to jump in the face
2010-12-09 08:40:05 +02:00
Einar Lielmanis
21d301d20b
Do not process block comments (except for javadoc)
...
Let's try not touching the insides of block comments at all:
/*
these comments —
they can have various
|
V
things in them,
possibly indented
*/
If you've got a good case on where the old behavior should be preserved,
I'd love to hear that.
2010-12-07 08:20:17 +02:00
Einar Lielmanis
bd93ec3bf2
Possibly fix multiplying newline bug (\r)
2010-12-07 01:12:05 +02:00
Einar Lielmanis
4689a09b0b
Fix [{foo}] when keep_array_indentation=true
...
Input:
[{'a':0}]
Was:
[{'a':0}
]
Is:
[{
'a':0
}]
2010-12-07 01:06:31 +02:00
Einar Lielmanis
61beeabfed
Move to static flattr button
2010-12-06 23:07:55 +02:00
Einar Lielmanis
61e96a2a87
WikiLeaks: Paypal can bite my shiny metal ass.
...
Ditched paypal, moved to moneybookers. Also, added a flattr: I'm very
curious, how will this work out.
Ah, slightly moved the page around. The HTML is nothing to be too proud
of, though.
2010-12-06 21:03:09 +02:00
Einar Lielmanis
3fc0b1a50a
Add preserve_max_newlines option
...
preserve_max_newlines option by Mikkel Bergmann
2010-11-30 18:43:26 +02:00
Einar Lielmanis
d2f5315e4f
Fix multiline comment indentation
...
function foo () {
/*
* foo
*/
}
was getting whacked to
function foo () {
/*
* foo
*/
}
2010-11-18 00:04:33 +02:00
Einar Lielmanis
1799df2bf1
Fix a html-formatter freeze
...
<a><a> made the beautifier freeze
2010-11-08 12:31:06 +02:00
Einar Lielmanis
5340a2b501
Merge branch 'tilla-master'
2010-10-31 21:13:39 +02:00
tilman
744033a201
changed default behaviour. to read from stdin add option --stdin
2010-10-31 20:06:07 +01:00
tilman
871d4f050d
added ability to read from stdin for use with vim autocmd
2010-10-31 09:04:18 +01:00
Ariya Hidayat
10384df62e
Option to overwrite the original source file.
2010-10-18 18:09:43 +08:00
Nicolas Ferrero
31c3c10bca
v8 version command line support
...
64bits compilation doc
2010-10-15 01:32:50 +08:00
Nicolas Ferrero
e35f114bed
QtScript indent
2010-10-15 01:32:47 +08:00
Nicolas Ferrero
59d7aee4d3
Add command line arguments support to qtscript version
2010-10-14 11:31:12 +08:00
Ariya Hidayat
a52ac9ab7c
V8-based runner for the command-line tool.
2010-10-14 11:30:46 +08:00
Ariya Hidayat
da658e8bcc
Fix the path to beautify.js.
2010-10-14 02:25:54 +08:00
Ariya Hidayat
c95179a737
Some info on how to built the Qt Script-based driver.
2010-09-21 00:25:52 +08:00
Einar Lielmanis
12c7e8a068
...cleanup
2010-09-20 13:40:56 +03:00