I like to copy man pages to my own offline documentation where I can highlight and supplement the information with my own notes. However, I always have a problem with the exported text containing linefeeds at the end of every line, including in the middle of paragraphs. The process of stripping away the unnecessary linefeeds is annoying and time consuming, and I was hoping to find a simple way to initially export the information with the linefeeds only in their proper places.
I have examined the man command man pages and surprising have not found a solution to this problem. The closest I have come to fixing the problem is to use the ‘-c’ option while stretching the terminal window to be as wide as possible, however this is not a very effective fix for large man pages with lengthy paragraphs.
One interesting thing the ‘-c’ option shows me is that the locations of the LFs are indeed possible to be modified by the man program— So why isn’t the program capable of just removing the unnecessary ones altogether? Is there a simple command I that I’ve missed somehow?
Thanks in advance..