In order to preserve the format of the comments on a logical line-by-line basis, carriage returns are inserted following the last non-blank on each line. This reduces the efficiency of the space compression slightly, since leading spaces cannot be merged together with trailing spaces from the previous line. However, this is made up for partly by the fact that we don't have to store trailing spaces anymore.
More importantly, the embedded carriage returns preserve the format even if the memo window area is expanded. It also allows the retrieval on a logical line-by-line basis for inclusion in reports where the size of the original window area is unknown.