private static String preprocess(String contents) {
		String[] lines = contents.split("[\n\r]+");
		StringBuffer ready = new StringBuffer();
		for (int i = 0; i < lines.length; i++) {
			String l = lines[i];
			if (!l.startsWith("#") || l.matches("^\\s*$")) {
				ready.append(l);
				if (!l.trim().endsWith("|")) {
					ready.append('\n');
				}
			}
		}
		return ready.toString();
	}