Port spacing takes line wrapping into consideration
added comments
Removal of magic number
Merge pull request #890 from ambarish-prakash/FormattedTextPart

Port spacing takes line wrapping into consideration