postcss-math icon indicating copy to clipboard operation
postcss-math copied to clipboard

Multiline arguments breaks output

Open sn3p opened this issue 7 years ago • 0 comments

We're using prettier to format our CSS. This means that lines break when going over 80 characters. It seems that maths.eval breaks lines into an array, and after calling toString on the result the output includes brackets.

For example:

padding: resolve(
      1 + 3)px;
padding: resolve(1
      + 3)px;

Results in:

padding: [4]px;
padding: [1, 3]px;

sn3p avatar Oct 02 '18 12:10 sn3p