Refactor troff plug-in to separate base plain text output