Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pretty printed changes should align values #244

Closed
stevendborrelli opened this issue Sep 13, 2016 · 9 comments
Closed

pretty printed changes should align values #244

stevendborrelli opened this issue Sep 13, 2016 · 9 comments
Milestone

Comments

@stevendborrelli
Copy link
Member

stevendborrelli commented Sep 13, 2016

the changes output arrows should line up. Currently they are staggered:

root/file.file1:
    Messages:
    Has Changes: yes
    Changes:
        content:
        before:

        after:
            this is a test
            of the content module

        gid: "" => "20"
        group: "" => "staff"
        type: "" => "file"
        uid: "" => "501"
        username: "" => "steve"

This is a minor issue, but reformat output so that => arrows line up.

@BrianHicks
Copy link
Contributor

Clarification: do you want them lined up after the colon or after the value? (I vote after the colon)

Colon

        gid:      "" => "20"
        group:    "" => "staff"
        type:     "" => "file"
        uid:      "" => "501"
        username: "" => "steve"

Value

        gid: ""      => "20"
        group: ""    => "staff"
        type: ""     => "file"
        uid: ""      => "501"
        username: "" => "steve"

@BrianHicks
Copy link
Contributor

Colons also look better when the values are different sizes:

        gid:      "" => "20"
        group:    "" => "staff"
        type:     "" => "file"
        uid:      "" => "501"
        username: "brian" => "steve"

@stevendborrelli
Copy link
Member Author

colon, but we need to see what it looks like when diffs are applied.

@rebeccaskinner
Copy link
Contributor

Do we want to essentially columnize the output by left-justifying what comes before the arrow?

    gid:           "" => "20"
    group:         "" => "staff"
    type:          "" => "file"
    uid:           "" => "501"
    username: "brian" => "steve"

On Sep 13, 2016, at 11:56 AM, Brian Hicks [email protected] wrote:

Colons also look better when the values are different sizes:

    gid:      "" => "20"
    group:    "" => "staff"
    type:     "" => "file"
    uid:      "" => "501"
    username: "brian" => "steve"


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub #244 (comment), or mute the thread https://github.com/notifications/unsubscribe-auth/AAMbq8h01simDOIClgyry5ypOxEBzbG6ks5qptWxgaJpZM4J75qQ.

@BrianHicks
Copy link
Contributor

that was my thought, yes

@BrianHicks BrianHicks changed the title pretty print changes pretty printed changes should align values Sep 13, 2016
@BrianHicks BrianHicks changed the title pretty printed changes should align values pretty print changes Sep 13, 2016
@BrianHicks BrianHicks changed the title pretty print changes pretty printed changes should align values Sep 13, 2016
@BrianHicks
Copy link
Contributor

Sorry for the noise about the title. I think Waffle is doing something odd.

@BrianHicks BrianHicks added this to the 0.3 milestone Sep 19, 2016
@sehqlr
Copy link
Contributor

sehqlr commented Sep 22, 2016

What was the color on the bike shed on this one? I think that we decided on something, but I don't know if it was written down anywhere.

@BrianHicks
Copy link
Contributor

Definitely a compile flag.

...

Just kidding it's gonna be after the colon / before the arrow.

sehqlr added a commit that referenced this issue Sep 26, 2016
This commit adds the text/tabwriter package to the human prettyprinter
package, and updates test case inputs. This aligns values based on a new
tab inserted to the right of the colon.

Fixes #244
@sehqlr
Copy link
Contributor

sehqlr commented Oct 4, 2016

I'm going to remove from the 0.3.0 project, so we only track the PR

sehqlr added a commit that referenced this issue Oct 7, 2016
This commit adds the text/tabwriter package to the human prettyprinter
package, and updates test case inputs. This aligns values based on a new
tab inserted to the right of the colon.

Fixes #244
rebeccaskinner pushed a commit that referenced this issue Oct 14, 2016
This commit adds the text/tabwriter package to the human prettyprinter
package, and updates test case inputs. This aligns values based on a new
tab inserted to the right of the colon.

Fixes #244
BrianHicks pushed a commit that referenced this issue Dec 22, 2016
This commit adds the text/tabwriter package to the human prettyprinter
package, and updates test case inputs. This aligns values based on a new
tab inserted to the right of the colon.

Fixes #244
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants