mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-30 19:52:13 +01:00
Merge pull request #2074 from matthijskooijman/ide-1.5.x-dep-spaces
Unescape special characters in dependency files
This commit is contained in:
commit
de1e65f716
@ -297,6 +297,9 @@ public class Compiler implements MessageConsumer {
|
|||||||
line = line.substring(0, line.length() - 1);
|
line = line.substring(0, line.length() - 1);
|
||||||
}
|
}
|
||||||
line = line.trim();
|
line = line.trim();
|
||||||
|
// Strip backslash escape sequences. This replaces \\ with \ and
|
||||||
|
// removes all other backslashes
|
||||||
|
line = line.replaceAll("\\\\(.)", "$1");
|
||||||
if (line.length() == 0) continue; // ignore blank lines
|
if (line.length() == 0) continue; // ignore blank lines
|
||||||
if (need_obj_parse) {
|
if (need_obj_parse) {
|
||||||
// line is supposed to be the object file - make sure it really is!
|
// line is supposed to be the object file - make sure it really is!
|
||||||
|
Loading…
x
Reference in New Issue
Block a user