From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/14741 Path: news.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Table column width in pipe tables Date: Fri, 8 Apr 2016 15:00:03 -0700 Message-ID: <20160408220003.GC61469@MacBook-Air-2.local> References: <470f5401-a92d-4955-aff6-d7f242b2cbd9@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed X-Trace: ger.gmane.org 1460152821 16595 80.91.229.3 (8 Apr 2016 22:00:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 8 Apr 2016 22:00:21 +0000 (UTC) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCJZJHG45QDBB36TUC4AKGQEN26L4AI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sat Apr 09 00:00:17 2016 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-qk0-f185.google.com ([209.85.220.185]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aoeRs-0001Pe-Vt for gtp-pandoc-discuss@m.gmane.org; Sat, 09 Apr 2016 00:00:17 +0200 Original-Received: by mail-qk0-f185.google.com with SMTP id z64sf40486329qkb.1 for ; Fri, 08 Apr 2016 15:00:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=sender:from:date:to:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=8a35hMXMRfDECOrCwNvc5zLBpXU0ytAfHyTxfx+8xlc=; b=LAHnznT55jRgn5NgaoryPusm06v2jc886rkMsBLQlmVt8cntuNUV9n4b9AeexUdu+2 t4QSbyzM2h2Sct8gt8dHC6LeLmJ9brMZPyf/xf+7QdnqjBMOR+R/3PQDnMsrcAHR87Ir 8aZm+NKx66WReVnUMhag3rLG0IhiYb4IJjXiN2hWeA46QqhRgjZoWHhOyn+rglO4/kYI +sYszsMYWV0gjcsiIFAP1p4GMlsMHiX1+RrNvwbTTMmJfCVjGeIp+EJoJKbHNyf0eDEr 6HQHOZ9yRjBzsqomhQ1lXqTS3CDDkKMwuMWX1gVnWwd4pUr1GeXM74yjN18KHTF03N+B q7Ug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=sender:x-gm-message-state:from:date:to:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=8a35hMXMRfDECOrCwNvc5zLBpXU0ytAfHyTxfx+8xlc=; b=YlRsyjn5h3PgEFaMNSESp46OMeu81pzalTgwBEiEIj7wjUq6wBZTAeKY6OXBT5a/1W MN5iW/YFiMoFTjk2LxB2u0I5/yoXk+8gFjJvPedIB1HZrWcF8MMpMdDlzs2V8LoaR4bt rCA0GB2JbvrhjVSXbGLE0ULDdgNSFpMsTW/of5fw1LhTCSRDLn8mbKtIb4jSZoMvTBLX VxNIEMZg2pokA12g9TEE+R1IvVlT2WcoGYVgEUbq7ZjcTd8THygdTi7VSMRq9NlB+Qhq z+Yb8Yz5VFOmh0rdQW53Tkle0Yh4jCwQCqElC2mXX4L/vlRnEcEYDHxgKd56qN3oY43D Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AD7BkJJc8wLiso0l1fC9RY9Rf/DzEMDLiWAiVkrq9IGY/R5RE4nNjnd9QgZANDWWl8mFDQ== X-Received: by 10.50.30.38 with SMTP id p6mr149293igh.10.1460152816275; Fri, 08 Apr 2016 15:00:16 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.50.28.110 with SMTP id a14ls331805igh.28.canary; Fri, 08 Apr 2016 15:00:15 -0700 (PDT) X-Received: by 10.50.79.161 with SMTP id k1mr3652617igx.3.1460152815884; Fri, 08 Apr 2016 15:00:15 -0700 (PDT) Original-Received: from mail-pf0-x22e.google.com (mail-pf0-x22e.google.com. [2607:f8b0:400e:c00::22e]) by gmr-mx.google.com with ESMTPS id yr8si341926pac.0.2016.04.08.15.00.15 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 08 Apr 2016 15:00:15 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c00::22e as permitted sender) client-ip=2607:f8b0:400e:c00::22e; Original-Received: by mail-pf0-x22e.google.com with SMTP id 184so83352487pff.0 for ; Fri, 08 Apr 2016 15:00:15 -0700 (PDT) X-Received: by 10.98.42.4 with SMTP id q4mr15500724pfq.23.1460152815660; Fri, 08 Apr 2016 15:00:15 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id f66sm20787188pff.8.2016.04.08.15.00.14 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 08 Apr 2016 15:00:14 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 670E7A5B3; Fri, 8 Apr 2016 18:00:03 -0400 (EDT) Content-Disposition: inline In-Reply-To: <470f5401-a92d-4955-aff6-d7f242b2cbd9-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-PGP-Key: http://johnmacfarlane.net/jgm.asc User-Agent: Mutt/1.5.23 (2014-03-12) X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c00::22e as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Spam-Checked-In-Group: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:14741 Archived-At: +++ news-WPTjrydoUPgeaOpM6FAJmQkbCANdLtlA@public.gmane.org [Apr 06 16 18:03 ]: > I'm using pipe tables like > | Key combo | Description | > | --- | --- | > | Shift + Cmd + arrows up/down | go through MoneyWiz sections such as > Accounts, Dashboard, Budgets, Reports, etc. | > quite a bit. > (1) However I do not understand the logic how the width of the table > columns is determined. In the case above the 2nd column will be > extremely narrow. > I can rectify this by longer dash lines like > | --------- | --------- | > But why? And how long do I have to make them? (I would have thought > the relative length would be used; so in the case of the dash line > | --- | --- | > each column would get a max of 50%.) Column widths are ratios of the line lengths to the overall column width (see --columns). That's because people don't always want their tables to be 100% width. > (2) The documentation says: > If a pipe table contains a row whose printable content is wider than > the column width (see --columns), then the cell contents will wrap, > with the relative cell widths determined by the widths of the separator > lines. Yes, this is the part that explains the behavior you're seeing. You have a long cell there, that pandoc thinks will need to wrap. So it adds the column widths. If you want bigger column widths, use bigger separators (-----------). > However elsewhere the doco states that --columns "affects only the > generated source code". So what's the logic and mechanism here? This isn't accurate any more, since we also use column width to determine relative table column width, so the README should be adjusted. I will change it.