[doc] move prepend in to command file

also cleanup around newline stuff