Help needed; Shopify flow(Spreadsheet)- Unexpected line break in a cell

Hi, I’m using shopify flow to send data to spreadsheet.

This is the variable I added so far, but for some variables it makes unexpected line break in spreadsheet. How can I output only the variables, but not the line break?

When I tried to put delivery method and lineitem title, there was unexpected line break in a cell.

This is the picture of spreadsheet.

Liquid inserts line breaks when you use newlines. Use hyphens in your tags to remove them, like {{- some_variable -}}