mirror of
https://github.com/arduino/Arduino.git
synced 2025-03-13 10:29:35 +01:00
Carriage return is not properly handled by EditorConsole, better replace it with a new line
This commit is contained in:
parent
152aa595ec
commit
77c3d3eaa8
@ -126,6 +126,7 @@ public class EditorConsole extends JScrollPane {
|
||||
}
|
||||
|
||||
public void insertString(String line, SimpleAttributeSet attributes) throws BadLocationException {
|
||||
line = line.replace("\r\n", "\n").replace("\r", "\n");
|
||||
int offset = document.getLength();
|
||||
document.insertString(offset, line, attributes);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user