I have a program that exports the database schema creation script to a file using ExportSchema.
Under Windows the output contains a mix of end of lines. New lines inside a sentence use \n and the last line uses \r\n. For example:
From what I have seen, AbstractScriptTargetOutput uses line.separator, but Formatter derived classes BasicFormatterImpl and DDLFormatterImpl use hardcoded \n.