@Rebecca it definitely is possible to manipulate multiple lines into one on the PDF, though wherever possible it’s good to try and keep the raw record and the presentation version (the PDF) as similar as possible to avoid confusion. Also, the more custom manipulation done in the PDF, the harder it may be to maintain that in the future. Just something to consider.
You’ll want to take a look at Freemarker variables, as that will probably be needed for matching and combining multiple lines into one.