atom-alignment icon indicating copy to clipboard operation
atom-alignment copied to clipboard

Multi Match Alignment

Open MethodGrab opened this issue 9 years ago • 1 comments

Atom: 1.0.7 atom-alignment: 0.12.1

Strings that contain alignment characters should not be changed by the plugin.

Example:

var foo = {
    bar: '1   :abc',
    bazzzzzz : '2:  def'
};

Expected:

var foo = {
    bar      : '1   :abc',
    bazzzzzz : '2:  def'
};

Actual:

var foo = {
    bar      : '1 :abc',
    bazzzzzz : '2 : def'
};

MethodGrab avatar Aug 12 '15 08:08 MethodGrab

This also happens with JavaScript comparison operators:

Example:

var foo, barrrrrrr;
foo = typeof foo !== 'undefined' ? foo : 250;
barrrrrrr = typeof barrrrrrr !== 'undefined' ? barrrrrrr : 50;

Expected:

var foo, barrrrrrr;
foo       = typeof foo !== 'undefined' ? foo : 250;
barrrrrrr = typeof barrrrrrr !== 'undefined' ? barrrrrrr : 50;

Actual:

var foo, barrrrrrr;
foo       = typeof foo !       = = 'undefined' ? foo       : 250;
barrrrrrr = typeof barrrrrrr ! = = 'undefined' ? barrrrrrr : 50;

MethodGrab avatar Aug 18 '15 11:08 MethodGrab