Fix empty line handling in multiline values