Skip to content

Commit

Permalink
cpan/Term-Table - Update to version 0.018
Browse files Browse the repository at this point in the history
0.018     2023-10-22 21:55:51-07:00 America/Los_Angeles

    - Merged doc fix PR
  • Loading branch information
Chad Granum authored and jkeenan committed Nov 1, 2023
1 parent ccb8754 commit 25df82d
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 34 deletions.
3 changes: 2 additions & 1 deletion Porting/Maintainers.pl
Expand Up @@ -1087,7 +1087,8 @@ package Maintainers;
},

'Term::Table' => {
'DISTRIBUTION' => 'EXODIST/Term-Table-0.017.tar.gz',
'DISTRIBUTION' => 'EXODIST/Term-Table-0.018.tar.gz',
'SYNCINFO' => 'jkeenan on Wed Nov 1 19:16:24 2023',
'SYNCINFO' => 'LeoNerd on Wed Sep 13 18:33:07 2023',
'FILES' => q[cpan/Term-Table],
'EXCLUDED' => [
Expand Down
55 changes: 28 additions & 27 deletions cpan/Term-Table/lib/Term/Table.pm
Expand Up @@ -2,7 +2,7 @@ package Term::Table;
use strict;
use warnings;

our $VERSION = '0.017';
our $VERSION = '0.018';

use Term::Table::Cell();

Expand Down Expand Up @@ -262,22 +262,22 @@ Term::Table - Format a header and rows into a table
=head1 DESCRIPTION
This is used by some failing tests to provide diagnostics about what has gone
wrong. This module is able to generic format rows of data into tables.
wrong. This module is able to format rows of data into tables.
=head1 SYNOPSIS
use Term::Table;
my $table = Term::Table->new(
max_width => 80, # defaults to terminal size
max_width => 80, # Defaults to terminal size
pad => 4, # Extra padding between table and max-width (defaults to 4)
allow_overflow => 0, # default is 0, when off an exception will be thrown if the table is too big
collapse => 1, # do not show empty columns
allow_overflow => 0, # Default is 0, when off an exception will be thrown if the table is too big
collapse => 1, # Do not show empty columns
header => ['name', 'age', 'hair color'],
rows => [
['Fred Flinstone', 2000000, 'black'],
['Wilma Flinstone', 1999995, 'red'],
['Fred Flintstone', 2000000, 'black'],
['Wilma Flintstone', 1999995, 'red'],
...
],
);
Expand All @@ -286,13 +286,13 @@ wrong. This module is able to generic format rows of data into tables.
This prints a table like this:
+-----------------+---------+------------+
| name | age | hair color |
+-----------------+---------+------------+
| Fred Flinstone | 2000000 | black |
| Wilma Flinstone | 1999995 | red |
| ... | ... | ... |
+-----------------+---------+------------+
+------------------+---------+------------+
| name | age | hair color |
+------------------+---------+------------+
| Fred Flintstone | 2000000 | black |
| Wilma Flintstone | 1999995 | red |
| ... | ... | ... |
+------------------+---------+------------+
=head1 INTERFACE
Expand All @@ -305,8 +305,8 @@ This prints a table like this:
=item header => [ ... ]
If you want a header specify it here. This takes an arrayref with each columns
heading.
If you want a header specify it here.
This takes an arrayref with each columns heading.
=item rows => [ [...], [...], ... ]
Expand All @@ -325,16 +325,17 @@ terminal and use that, otherwise it falls back to the terminal width or C<80>.
=item pad => $num
Defaults to 4, extra padding for row width calculations. Default is for legacy
support. Set this to 0 to turn padding off.
Defaults to C<4>, extra padding for row width calculations.
Default is for legacy support.
Set this to C<0> to turn padding off.
=item allow_overflow => $bool
Defaults to 0. If this is off then an exception will be thrown if the table
cannot be made to fit inside the max-width. If this is set to 1 then the table
will be rendered anyway, larger than max-width, if it is not possible to stay
within the max-width. In other words this turns max-width from a hard-limit to
a soft recommendation.
Defaults to C<0>. If this is off then an exception will be thrown if the table
cannot be made to fit inside the max-width. If this is set to C<1> then the
table will be rendered anyway, larger than max-width, if it is not possible
to stay within the max-width. In other words this turns max-width from a
hard-limit to a soft recommendation.
=item sanitize => $bool
Expand All @@ -343,7 +344,7 @@ characters, and all whitespace except for ASCII 20 C<' '> are replaced with
escape sequences. This prevents newlines, tabs, and similar whitespace from
disrupting the table.
B<Note:> newlines are marked as '\n', but a newline is also inserted into the
B<Note:> newlines are marked as C<\n>, but a newline is also inserted into the
data so that it typically displays in a way that is useful to humans.
Example:
Expand Down Expand Up @@ -420,8 +421,8 @@ will be anomalies in the table:
=head1 SOURCE
The source code repository for Term-Table can be found at
F<http://github.com/exodist/Term-Table/>.
The source code repository for C<Term-Table> can be found at
L<https://github.com/exodist/Term-Table/>.
=head1 MAINTAINERS
Expand All @@ -446,6 +447,6 @@ Copyright 2016 Chad Granum E<lt>exodist@cpan.orgE<gt>.
This program is free software; you can redistribute it and/or
modify it under the same terms as Perl itself.
See F<http://dev.perl.org/licenses/>
See L<https://dev.perl.org/licenses/>
=cut
2 changes: 1 addition & 1 deletion cpan/Term-Table/lib/Term/Table/Cell.pm
Expand Up @@ -2,7 +2,7 @@ package Term::Table::Cell;
use strict;
use warnings;

our $VERSION = '0.017';
our $VERSION = '0.018';

use Term::Table::LineBreak();
use Term::Table::Util qw/uni_length/;
Expand Down
2 changes: 1 addition & 1 deletion cpan/Term-Table/lib/Term/Table/CellStack.pm
Expand Up @@ -2,7 +2,7 @@ package Term::Table::CellStack;
use strict;
use warnings;

our $VERSION = '0.017';
our $VERSION = '0.018';

use Term::Table::HashBase qw/-cells -idx/;

Expand Down
2 changes: 1 addition & 1 deletion cpan/Term-Table/lib/Term/Table/HashBase.pm
Expand Up @@ -2,7 +2,7 @@ package Term::Table::HashBase;
use strict;
use warnings;

our $VERSION = '0.017';
our $VERSION = '0.018';

#################################################################
# #
Expand Down
2 changes: 1 addition & 1 deletion cpan/Term-Table/lib/Term/Table/LineBreak.pm
Expand Up @@ -2,7 +2,7 @@ package Term::Table::LineBreak;
use strict;
use warnings;

our $VERSION = '0.017';
our $VERSION = '0.018';

use Carp qw/croak/;
use Scalar::Util qw/blessed/;
Expand Down
2 changes: 1 addition & 1 deletion cpan/Term-Table/lib/Term/Table/Spacer.pm
Expand Up @@ -2,7 +2,7 @@ package Term::Table::Spacer;
use strict;
use warnings;

our $VERSION = '0.017';
our $VERSION = '0.018';

sub new { bless {}, $_[0] }

Expand Down
2 changes: 1 addition & 1 deletion cpan/Term-Table/lib/Term/Table/Util.pm
Expand Up @@ -4,7 +4,7 @@ use warnings;

use Config qw/%Config/;

our $VERSION = '0.017';
our $VERSION = '0.018';

use base 'Exporter';
our @EXPORT_OK = qw/term_size USE_GCS USE_TERM_READKEY USE_TERM_SIZE_ANY uni_length/;
Expand Down

0 comments on commit 25df82d

Please sign in to comment.