Skip to content

More weird parenthesis wrapping #45

@maranomynet

Description

@maranomynet
$bp[$name] = ($itm.minWidth)px if $itm.minWidth;
$bp[$name + '-min'] = ($itm.minWidth)px if $itm.minWidth;

becomes:

$bp[$name] = ($itm.minWidth) px if ($itm.minWidth);
$bp[($name + '-min')] = ($itm.minWidth) px if ($itm.minWidth);

NOTE The $name + 'min' bit should not be wrapped

Additionally, as I format (save) again this becomes:

$bp[$name] = (($itm.minWidth)) px if ($itm.minWidth);
$bp[(($name + '-min'))] = (($itm.minWidth)) px if ($itm.minWidth);

which becomes:

$bp[$name] = ((($itm.minWidth))) px if ($itm.minWidth);
$bp[((($name + '-min')))] = ((($itm.minWidth))) px if ($itm.minWidth);

which becomes:

$bp[$name] = (((($itm.minWidth)))) px if ($itm.minWidth);
$bp[(((($name + '-min'))))] = (((($itm.minWidth)))) px if ($itm.minWidth);

ad nauseum..

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions