Correctly record newlines for multi-line settings