Support saving documents with line breaks.