Skip Menu |
 

This queue is for tickets about the Text-Table CPAN distribution.

Report information
The Basics
Id: 130334
Status: new
Priority: 0/
Queue: Text-Table

People
Owner: Nobody in particular
Requestors: stephan.hradek [...] eco.de
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Table print feature request
Date: Sun, 18 Aug 2019 08:45:06 +0000
To: "bug-Text-Table [...] rt.cpan.org" <bug-Text-Table [...] rt.cpan.org>
From: Stephan Hradek <stephan.hradek [...] eco.de>
Download (untitled) / with headers
text/plain 965b
Hi! As stated in my other feature request, I just started yesterday using Text::Table. I was puzzled by another behaviour I did not expect. When I created my table, I also called $tb->rule('-','|'); When I later printed the table, with "print $tb" no rule was printed. I needed quite some time to figure out that it's required to print like this: print $tb->title, $tb->rule('-','|'), $tb->body; Additionally it seems you need to print every row of the table on its own when you want body rules to be printed. Maybe you can add 2 members: $tb->add_rule(…) and $tb->add_body_rule(…) which simply prepare the rules and print them automatically when the table is printed? And while we are at it, maybe also footer and header rules could be handy to get "framed" tables like +----+----+ | c1 | c2 | |====|====| | A1 | A2 | | B1 | B2 | | C1 | C2 | +----+----+ I do not need it, but I saw that other table modules have this. Best regards, -- Stephan
Download smime.p7s
application/pkcs7-signature 2.4k

Message body not shown because it is not plain text.



This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.