I just wrote up some python code to wrap lines, pre-pad, and align them arbitrarily. I was aiming at a nicely-formatted output for things like the help section and the search/displayed output for packages. Grab pretty.py and run it. It's got the following examples of what it can do at the bottom of the code. http://gentoo.twobit.net/portage/pretty.py Input is a single space delminited line. 1st and 3rd are prepad=6. ------------------------------------------------------------------------ Description: IRC daemon with hostname cloaking, SOCKS proxy checking and other advanced features. This is a bunch of useless gibberish that really doesn't mean anything. Rreally I'm just trying to break this function. Htpp://thisiswaytofreakinglong.com/so/IamAddingAb unchMoreCharactersToTheURL.html-asksjakwk4eklklsk lslks-asdf;asdfa;sdfwe=werasdf:asdfasdf3w Description: IRC daemon with hostname cloaking, SOCKS proxy checking and other advanced features. This is a bunch of useless gibberish that really doesn't mean anything. Rreally I'm just trying to break this function. Htpp://thisiswaytofreakinglong.com/so/IamAddingAbunchMo reCharactersToTheURL.html-asksjakwk4eklklsklslks-asdf;a sdfa;sdfwe=werasdf:asdfasdf3w Description: Htpp://thisiswaytofreakinglong.com/so/IamAddingAb unchMoreCharactersToTheURL.html-asksjakwk4eklklsk lslks-asdf;asdfa;sdfwe=werasdf:asdfasdf3w Description: Htpp://thisiswaytofreakinglong.com/so/IamAddingAbunchMo reCharactersToTheURL.html-asksjakwk4eklklsklslks-asdf;a sdfa;sdfwe=werasdf:asdfasdf3w ------------------------------------------------------------------------
This is something that I wanted to write. Could you work on integrating it into emerge help, maybe?
Putting this into the help section would be massively painful. Probably wouldn't help much as it doesn't change much. I do have a diff against 2.0.35 where the homepage and description fields that are printed in search are done up with prettyprint. app-admin/ctcs <-- is an exaggerated example. http://gentoo.twobit.net/portage/emerge.pretty.diff
Slapping this one shut. 'prettying' up the output of emerge/repoman is needed, although those bugs probably should be opened individually (kind of hard to turn this into a metabug of "portage output is butt-ugly").