Skip to content

Handle CR without NL printed in EditorConsole #9954

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
EditorConsole: Do not trim getText() result
Not trimming makes this method usable for unittesting. Since this method
is not currently used anywhere, it should not affect any behaviour.
  • Loading branch information
matthijskooijman committed May 7, 2020
commit a83adae17153f2d1707cb2ef9c3817641b1eda57
2 changes: 1 addition & 1 deletion app/src/processing/app/EditorConsole.java
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public void insertString(String line, SimpleAttributeSet attributes) throws BadL
}

public String getText() {
return consoleTextPane.getText().trim();
return consoleTextPane.getText();
}

}