/** * Bug: 2119937 (Windows EOL chars (CRLF) are converted to Linux EOL (LF)) * Internally, SQuirreL prefers to represent EOL as "\n". This is fine for Unix, but in Windows, EOL is * "\r\n". So, if the platform-specific EOL isn't "\n", this method will replace all "\n", with "\r\n". * Other editors on Windows will then properly display the EOL characters. * * @return a String that represents the SQL Script being saved with adjusted (if necessary) EOL characters. */ private String getEntireSQLScriptWithPlatformEolChar() { String result = _sqlPanelAPI.getEntireSQLScript(); return convertLineFeedToPlatformEOL(result); }
/** * Bug: 2119937 (Windows EOL chars (CRLF) are converted to Linux EOL (LF)) * Internally, SQuirreL prefers to represent EOL as "\n". This is fine for Unix, but in Windows, EOL is * "\r\n". So, if the platform-specific EOL isn't "\n", this method will replace all "\n", with "\r\n". * Other editors on Windows will then properly display the EOL characters. * * @return a String that represents the SQL Script being saved with adjusted (if necessary) EOL characters. */ private String getEntireSQLScriptWithPlatformEolChar() { String result = _sqlPanelAPI.getEntireSQLScript(); return convertLineFeedToPlatformEOL(result); }