Possible to create an output style without a line break after each record?

Is it possible to create an output style without a line break after each record? 

We’d like to make a list of PMIDs with spaces separating them, instead of line breaks. Our workaround is to remove the line breaks in MS Word afterwards. 

Many thanks!