Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 6116 - [new code] PrettyPrint block formatting
Summary: [new code] PrettyPrint block formatting
Status: RESOLVED CANTFIX
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Portage team
URL: http://gentoo.twobit.net/portage/pret...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-06 17:06 UTC by Nicholas Jones (RETIRED)
Modified: 2011-10-30 22:18 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicholas Jones (RETIRED) gentoo-dev 2002-08-06 17:06:16 UTC
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
------------------------------------------------------------------------
Comment 1 Daniel Robbins (RETIRED) gentoo-dev 2002-08-07 12:11:56 UTC
This is something that I wanted to write.  Could you work on integrating it into
emerge help, maybe?
Comment 2 Nicholas Jones (RETIRED) gentoo-dev 2002-09-04 05:13:07 UTC
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
Comment 3 Brian Harring (RETIRED) gentoo-dev 2005-02-27 21:37:23 UTC
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").