Quantcast
Channel: PowerShell.org » All Posts
Viewing all articles
Browse latest Browse all 13067

Print multi-line output

$
0
0

I am reading data from an SQL table and one of the fields, being a note field, has data on two or more lines. I’d like to maintain that multi-line format in my output so that the result is similar to what’s below.

UserID : jdandy
FirstName : Jim
LastName : Dandy
Notes : MMN: Smith
COB: Athens

What I’m getting instead is:

UserID : jdandy
FirstName : Jim
LastName : Dandy
Notes : MMN: Smith COB: Athens

Is there some way to format the output string to maintain the multi-line notes?


Viewing all articles
Browse latest Browse all 13067

Trending Articles