Revert "Remove the spaces at end of output in some pf"

This reverts commit 1597d387d13fb83dd135867cbf9b448e059b3aa2.