Changeset 9dee329 for client


Ignore:
Timestamp:
Aug 16, 2010, 12:54:37 PM (14 years ago)
Author:
Kyle Brogle <broglek@…>
Branches:
master, debian, mac, no-cups
Children:
618236b, 600e713
Parents:
7cdd65d
git-author:
Kyle Brogle <broglek@…> (08/16/10 12:54:37)
git-committer:
Kyle Brogle <broglek@…> (08/16/10 12:54:37)
Message:

[Trac # 17] gbq now has fixed width columns to prevent formatting inconsistencies.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • client/bin/gbq

    r7cdd65d r9dee329  
    4343}
    4444print "Queue listing for queue '$queue' on '$host'\n\n";
    45 print "Job ID\t\tOwner\t\tTitle\n";
    46 print "-----------------------------------------------------------------\n";
    47 
     45printf ("%-8s%-15s%s\n","Job","Owner","Title");
     46print "-"x70 . "\n";
    4847my @jobs = $printer->getJobs(0, 0);
    4948my ($job_ref, $jobid);
     
    5655        my $title = $job_ref->{'title'};
    5756
    58         print "$id\t\t$user\t\t$title\n";
     57        printf ("%-8s%-15s%s\n","$id",substr("$user",0,15),substr("$title",0,47));
    5958}
Note: See TracChangeset for help on using the changeset viewer.