Skip Menu |
 

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

Report information
The Basics
Id: 130333
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)



MIME-Version: 1.0
Ironport-SDR: DmReZBFNmzTPOJTpOHDfasnvB86vZgCoI2Ywki2V9+OjUZzK+iZ8AJ8CfAkKklHSDgZCTbU7L2 YHFvdWIdQRO6fdZCMuT+NtGn2Gb7/sn5YvUpLiDAE1mftKGwrHRrVbq/pswRzCcARjSd0CR6ED 4o2NjI6Qv/HD3pvPN52dLpzlB42a+BN46AqSDHY9WChp/SvA2m0rjrKJObDLyhgdOmO34HAfgt YL0W9z7u3v8BQ4PDsLlNpmAovtjaVL53MbHKVrGBsD9qSFE8VP5rSwpi5qIPxBFzeK66moCOsB zNo=
In-Reply-To: <5AFD63F5-906F-49CC-A2DC-79B5253FDC70 [...] eco.de>
X-Spam-Status: No, score=-1.106 tagged_above=-99.9 required=10 tests=[AWL=0.000, BAYES_00=-1.9, RDNS_NONE=0.793, SPF_FAIL=0.001] autolearn=no
X-Cpan.org: This message routed through the cpan.org mail forwarding service. Please use PAUSE pause.perl.org to configure your delivery settings.
X-Spam-Flag: NO
Content-Language: en-US
References: <E73B2BB9-CE40-4452-B7ED-DA50FA88EB2E [...] eco.de> <5AFD63F5-906F-49CC-A2DC-79B5253FDC70 [...] eco.de>
Content-Type: multipart/signed; boundary="Apple-Mail=_52C46F6E-C2A7-447F-9DFB-8CE8BE2D7286"; micalg="sha-256"; protocol="application/pkcs7-signature"
Message-ID: <D41C9D52-A9EF-4C0F-A453-D0BAD5FFC0F1 [...] eco.de>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-MS-Tnef-Correlator:
X-Ironport-Av: E=Sophos;i="5.64,400,1559512800"; d="p7s'?scan'208";a="9904084"
X-Spam-Score: -1.106
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id C42CB240210 for <cpan-bug+Text-Table [...] hipster.bestpractical.com>; Sun, 18 Aug 2019 04:37:31 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uCWmGqcSxuDp for <cpan-bug+Text-Table [...] hipster.bestpractical.com>; Sun, 18 Aug 2019 04:37:31 -0400 (EDT)
Received: from xx1.develooper.com (unknown [147.75.38.233]) by hipster.bestpractical.com (Postfix) with ESMTPS id CFE5C2400EC for <bug-Text-Table [...] rt.cpan.org>; Sun, 18 Aug 2019 04:37:30 -0400 (EDT)
Received: from localhost (xx1.develooper.com [127.0.0.1]) by localhost (Postfix) with ESMTP id 9F8737C1A8 for <bug-Text-Table [...] rt.cpan.org>; Sun, 18 Aug 2019 01:37:30 -0700 (PDT)
Received: from xx1.develooper.com (xx1.develooper.com [127.0.0.1]) by localhost (Postfix) with SMTP id CFBC37CF54 for <bug-Text-Table [...] rt.cpan.org>; Sun, 18 Aug 2019 01:37:28 -0700 (PDT)
Received: from de-cix.net (relay3.de-cix.net [46.31.121.23]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by xx1.develooper.com (Postfix) with ESMTPS id 4A6807C1A8 for <bug-Text-Table [...] rt.cpan.org>; Sun, 18 Aug 2019 01:37:18 -0700 (PDT)
Received: from unknown (HELO smtp.de-cix.net) ([192.168.65.10]) by mailgw013.de-cix.net with ESMTP; 18 Aug 2019 10:26:19 +0200
Received: from EX02.for-the-inter.net (ex02.for-the-inter.net [192.168.49.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.de-cix.net (Postfix) with ESMTPS id DACF2B00B8 for <bug-Text-Table [...] rt.cpan.org>; Sun, 18 Aug 2019 10:37:17 +0200 (CEST)
Received: from EX03.for-the-inter.net (192.168.49.23) by EX02.for-the-inter.net (192.168.49.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1779.2; Sun, 18 Aug 2019 10:37:17 +0200
Received: from EX03.for-the-inter.net ([fe80::480e:9597:5b2c:7d61]) by EX03.for-the-inter.net ([fe80::480e:9597:5b2c:7d61%8]) with mapi id 15.01.1779.004; Sun, 18 Aug 2019 10:37:17 +0200
Delivered-To: cpan-bug+Text-Table [...] hipster.bestpractical.com
Subject: Alignment Feature request
Return-Path: <stephan.hradek [...] eco.de>
Thread-Index: AQHVVaAkNd6Ujuss3EaXeB99nd6vSg==
X-RT-Mail-Extension: text-table
X-Original-To: cpan-bug+Text-Table [...] hipster.bestpractical.com
X-PMX-Spam: Gauge=IIIIIIII, Probability=8%, Report=' HTML_00_01 0.05, HTML_00_10 0.05, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_5000_5999 0, BODY_SIZE_7000_LESS 0, IN_REP_TO 0, KNOWN_MSGID 0, KNOWN_MTA_TFX 0, LEGITIMATE_SIGNS 0, MSG_THREAD 0, NO_CTA_URI_FOUND 0, NO_URI_FOUND 0, NO_URI_HTTPS 0, REFERENCES 0, SPF_PASS 0, SXL_IP_TFX_WM 0, WEBMAIL_SOURCE 0, WEBMAIL_XOIP 0, WEBMAIL_X_IP_HDR 0, __ATTACHMENT_SIZE_0_10K 0, __BODY_NO_MAILTO 0, __CT 0, __CTYPE_HAS_BOUNDARY 0, __CTYPE_MULTIPART 0, __FRAUD_MONEY_CURRENCY 0, __FRAUD_MONEY_CURRENCY_DOLLAR 0, __HAS_ATTACHMENT 0, __HAS_ATTACHMENT1 0, __HAS_ATTACHMENT2 0, __HAS_FROM 0, __HAS_MSGID 0, __HAS_REFERENCES 0, __HAS_XOIP 0, __IN_REP_TO 0, __MIME_TEXT_P 0, __MIME_TEXT_P1 0, __MIME_TEXT_P2 0, __MIME_VERSION 0, __MSGID_APPLEMAIL 0, __NO_HTML_TAG_RAW 0, __REFERENCES 0, __SANE_MSGID 0, __SUBJ_ALPHA_END 0, __TO_MALFORMED_2 0, __TO_NAME 0, __TO_NO_NAME 0, __zen.spamhaus.org_ERROR '
Date: Sun, 18 Aug 2019 08:37:17 +0000
X-Spam-Level:
X-MS-Has-Attach: yes
Thread-Topic: Alignment Feature request
X-PMX-Version: 5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2019.8.18.82116
X-Originating-Ip: [192.168.140.168]
Accept-Language: de-DE, en-US
To: "bug-Text-Table [...] rt.cpan.org" <bug-Text-Table [...] rt.cpan.org>
From: Stephan Hradek <stephan.hradek [...] eco.de>
X-RT-Interface: Email
Content-Length: 0
content-type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: ascii
Content-Length: 1114
Hi! I just started yesterday using Text::Table and was a bit puzzled as the output wasn't what I expected. This is the smallest example I can create to illustrate my non-understanding: my $tb= Text::Table->new( { title => 'left' }, \' | ', { title => 'right', align => 'right' }); $tb->add('<','>'); print $tb I got left | right < | > where "<" is clearly NOT right aligned (to my understanding. When I added $tb->add('<<','>>') print $tb I got: left | right < | > << | >> which finally clarified my misunderstanding. Headers are not included in the calculation of the alignment. I worked around this by changing my code to include a sample having the width of the title, so something like this: Text::Table->new( { title => 'left', sample=> '----', }, \' | ', { title => 'right', sample=> '-----', align => 'right', }, ); Maybe it's possible to include a method/parameter to tell the table to include the headers in the width/alignment calculation? -- Stephan
Content-Type: application/pkcs7-signature; name="smime.p7s"
Content-Disposition: attachment; filename="smime.p7s"
Content-Transfer-Encoding: base64
Content-Length: 2494
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.