1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-02-26 20:54:22 +01:00

Fix trimming: trim() return value should be used.

This commit is contained in:
Thomas Leplus 2021-11-29 22:16:25 -08:00
parent c33fb9fde3
commit d17e1ef875
No known key found for this signature in database
GPG Key ID: 3183F6A02806B0E5

View File

@ -888,9 +888,7 @@ public class BaseNoGui {
// then trim any other character (\r) so saveStrings can print it in the correct // then trim any other character (\r) so saveStrings can print it in the correct
// format for every OS // format for every OS
String strArray[] = str.split("\n"); String strArray[] = str.split("\n");
for (String item : strArray) { Arrays.parallelSetAll(strArray, i -> strArray[i].trim());
item.trim();
}
PApplet.saveStrings(temp, strArray); PApplet.saveStrings(temp, strArray);
try { try {