fix #1169 -- force \n at the end of create_post’s output

This is #1169.