If spacing and padding of the input file is important to you, then perhaps you should show us the input file contents with the padding and spacing preserved, i.e. between <code> and </code> tags. It would help us understanding better your requirement.