Preserve all line breaks in literal blocks

Fixes #8512