Welcome @idrisa !
Please wrap your samples in triple-backticks markdowns, to keep the original format!
(The little terminal icon at the top of the edit window provides them.)
I edited your initial post. Maybe you want to re-edit it and adjust the spacing.?
I'm sorry, but this still doesn't help.
Maybe instead of duplicating your original post and adding unformatted outputs again, try re-editing original post to represent the actual formatting you want to retain.
No answers about any input data, neither code snippets were provided so far.