The very last thing (Don't forget the extra line break otherwise all shit goes to hell) is not valid. There is the ">" operator that "replaces a single newline by space but keeps empty line as newlines" and the "|" operator that preserves newlines. So in the example they just need to use the right operator and all is fine.