code: static List<String> sanitizeInput(List<String> words) {
  		words = words.stream()
  			.map(s -> s.replaceAll("^\\n+|\\n+$", "")) // CR at beginning/end of line introduced by backslash continuation
  			.map(s -> s.replaceAll("\\n+", " ")) // CR in middle of word introduced by return inside a quoted string
  			.collect(Collectors.toList());
  		return words;
  	}
docs: Sanitize the buffer input given the customizations applied to the JLine parser (<em>e.g.</em> support for
  line continuations, <em>etc.</em>)