I\'m writing a web service, and I want to return the data as XHTML. Because it\'s data, not markup, I want to keep it very clean - no extra
I agree with John Millikin. You can add in tags or something around each line with a CSS class defined, then make them display:block if necessary. The only other way I can think to do this is to make the an inline-block and make them emit "very large" padding-right, which would make the inline content wrap down.
Even so, your best bet is to logically group the data up in tags (or similar) to indicate that that data belongs together (and then let the CSS do the positioning).