How to left or right justified a CSV output?
There are no alignment in CSV format, it is just a plain text. The problem probably is in the application or component that you use to display CSV data, and it may be related to automatic data type detection.
If it doesn’t give a clue, please send us CSV file and a screenshot.