Prevents line breaks that might be outputed in run return to break condition.
I had a case with WP CLI (using remote SSH features) where the output of run contains a line break that makes the test command fail whereas it shouldn't have.
Basically, instead of getting +accurate, I got \n+accurate which makes the test evaluate to false.
Prevents line breaks that might be outputed in
run
return to break condition.I had a case with WP CLI (using remote SSH features) where the output of run contains a line break that makes the test command fail whereas it shouldn't have.
Basically, instead of getting
+accurate
, I got\n+accurate
which makes the test evaluate tofalse
.