public static String convertLineEndings(String text) {
		if (line_ending.equals("unix")) {
			return convertToUnix(text);
		} else if (line_ending.equals("pc")) {
			return convertToPC(text);
		} else if (line_ending.equals("mac")) {
			return convertToMac(text);
		} else {
			return text;
		}
	}