MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / fixLineEndings

Method fixLineEndings

ij/src/main/java/ij/plugin/frame/Editor.java:1861–1867  ·  view source on GitHub ↗

Changes Windows (CRLF) line separators to line feeds (LF).

()

Source from the content-addressed store, hash-verified

1859
1860 /** Changes Windows (CRLF) line separators to line feeds (LF). */
1861 public void fixLineEndings() {
1862 if (!IJ.isWindows())
1863 return;
1864 String text = ta.getText();
1865 text = text.replaceAll("\r\n", "\n");
1866 ta.setText(text);
1867 }
1868
1869 public void showLogWindow() {
1870 Frame log = WindowManager.getFrame("Log");

Callers 1

setDebugModeMethod · 0.95

Calls 4

isWindowsMethod · 0.95
replaceAllMethod · 0.80
getTextMethod · 0.45
setTextMethod · 0.45

Tested by

no test coverage detected