Skip to content
This repository was archived by the owner on Feb 4, 2022. It is now read-only.

Commit 1528863

Browse files
committed
Use \n instead of line.separator
1 parent 2c74548 commit 1528863

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/scijava/jupyter/kernel/evaluator/ScijavaEvaluator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ private String setLanguage(String code) {
160160
this.languageName = code.substring(2, code.indexOf("\n")).trim();
161161

162162
// Return the code string without the first line
163-
code = code.substring(code.indexOf(System.getProperty("line.separator")) + 1);
163+
code = code.substring(code.indexOf("\n") + 1);
164164
} // If only one line
165165
else {
166166
this.languageName = code.substring(2).trim();

0 commit comments

Comments
 (0)