Changeset 297 for trunk/ddt/ddt


Ignore:
Timestamp:
Jul 18, 2018, 12:36:37 PM (6 years ago)
Author:
g7moreau
Message:
  • small error, better title and print only if values
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ddt/ddt

    r296 r297  
    22702270
    22712271      my $tb_computer = Text::Table->new(
    2272          {align => 'left',   align_title => 'left',   title => 'Hostname.DomainSet'},
    2273          {align => 'left',   align_title => 'left',   title => 'IPv4-Address'},
    2274          {align => 'center', align_title => 'center', title => 'MAC-Address'},
    2275          {align => 'right',  align_title => 'right',  title => 'Type'},
    2276          {align => 'right',  align_title => 'right',  title => 'Status'},
    2277          {align => 'left',   align_title => 'left',   title => 'Date'},
    2278          {align => 'left',   align_title => 'left',   title => 'Comment'},
     2272         {align  => 'left',   align_title => 'left',   title => 'Hostname.DomainSet'},
     2273         {is_sep => 1,        body        => '  '},
     2274         {align  => 'left',   align_title => 'left',   title => 'IPv4-Address'},
     2275         {is_sep => 1,        body        => '  '},
     2276         {align  => 'center', align_title => 'center', title => 'MAC-Address'},
     2277         {is_sep => 1,        body        => '  '},
     2278         {align  => 'right',  align_title => 'right',  title => 'Type'},
     2279         {align  => 'right',  align_title => 'right',  title => 'Status'},
     2280         {is_sep => 1,        body        => '  '},
     2281         {align  => 'left',   align_title => 'left',   title => 'Date'},
     2282         {align  => 'left',   align_title => 'left',   title => 'Comment'},
    22792283         );
    2280 
    2281       $tb_computer->add(
    22822284
    22832285      #printf "%-30s  %-20s %17s %5s %7s %-10s %s\n",
     
    23382340         }
    23392341
    2340       print "\n# *** List of pool computers in the domain set: $domainset_current ***\n";
    2341       print $tb_computer->title();
    2342       print $tb_computer->rule('-');
    2343       print $tb_computer->body();
     2342      if ($tb->body_height) {
     2343         print "\n# *** List of pool computers in the domain set: $domainset_current ***\n";
     2344         print $tb_computer->title();
     2345         print $tb_computer->rule('-');
     2346         print $tb_computer->body();
     2347         }
    23442348      }
    23452349
Note: See TracChangeset for help on using the changeset viewer.