Enforces unix newlines on the given string.
(String input)
| 148 | ////////////////////////////// |
| 149 | /** Enforces unix newlines on the given string. */ |
| 150 | public static String toUnixNewline(String input) { |
| 151 | return input.replace("\r\n", "\n"); |
| 152 | } |
| 153 | |
| 154 | /** Quotes the given input string iff it contains whitespace. */ |
| 155 | public static String quote(String input) { |