and the in the email i get, the columns don't line up. its boarderline unreadable.
by DonJ at 2013-01-29 10:59:02
That's because PowerShell assumes you're using a monospaced font. It isn't intended to provide robust formatting, especially for proportional fonts.
Instead of Out-String, use ConvertTo-HTML. Then add the -BodyAsHTML (I'm not in front of a shell – that's probably the wrong parameter name, but there's something similar). That'll give you an HTML table, which will leave everything lined up.
by jgk-ps at 2013-01-29 11:06:27
lo and behold, it was totally obvious in hindsight
The topic ‘lining up columns’ is closed to new replies.