From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28571 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Anton Sharonov Newsgroups: gmane.text.pandoc Subject: Re: line breaking in grid table cells Date: Wed, 9 Jun 2021 23:18:16 +0200 Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5391"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDTJRTFGBEIJBYMEQYDBUBFSOLYZG-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Jun 09 23:20:18 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-wm1-f59.google.com ([209.85.128.59]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lr5cY-0001B6-6G for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 09 Jun 2021 23:20:18 +0200 Original-Received: by mail-wm1-f59.google.com with SMTP id n2-20020a05600c3b82b02901aeb7a4ac06sf3053042wms.5 for ; Wed, 09 Jun 2021 14:20:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1623273618; cv=pass; d=google.com; s=arc-20160816; b=aJjCEUAXMjFHWtl/3r+83zMbIDMkSP3jOBvzz/tNhdMuqN1j9h90zNrSlSSMTypy0P qvXwtuOtfXaiHj5WI3fgKnoP3q0Jm2QTirpgdfLGz4EVUyNbrKGygdWeRSy6F2KcTT+/ Vcf3mnojMJHEtCLN00PorVyxMvAIzJ+GXkM/1Seo+g+ti4s6vzwoWlo9p5xTBoUkmFle HcdyQV0Hfn+KcFElJxNHQpUuDHqz/G7reC5eu0mS3smxTrSOYJPptcOUYLRulXu0/g7G k2jmT6DiXymbR9tGqBmcy1p/Q2ZSZz8UTTEHDbPfDNUBhcGMdSGjiynGBzRjK0PPrbbc R2eQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:to:subject:message-id:date :from:in-reply-to:references:mime-version:sender:dkim-signature :dkim-signature; bh=VcybJkmwBQMtKXrQnmOu0GyKxnHgha+ygWkQ+HMIoN0=; b=yJZjyFn8noVWpfSvKjvQF3YnpCNIfJSTZpnYOJig/0KGKCWCIwGO8Ip0HlO172RgJA K25dlH+rsoxmER8tVFc5bVdnyvVC3FFd3rEiv+GZlZGe7dIDu2aD6jsUyfEdhwm5NlJq rTdBHoPPyBdnEjDnY0PHB1vbmQ6uFKiEr1eu7U6y/4lXvCqdKHLA1lOBx+IkEvTlzZ7n 6+SDKspL3k3XlqdeXUn+9dgbX/NLqEgFLHesspacknnRMCEN2jAxqTXQVWSSsHBDdc8j jB0eIm9uv/VNlscwdEdna32afuD21/TJzBOzB/LiuOra2au35uUicC3o4a/7J7UXYAhx WgvA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qmd5KCnq; spf=pass (google.com: domain of anton.sharonov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::231 as permitted sender) smtp.mailfrom=anton.sharonov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:mime-version:references:in-reply-to:from:date:message-id :subject:to:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=VcybJkmwBQMtKXrQnmOu0GyKxnHgha+ygWkQ+HMIoN0=; b=hMnRxlNCBEYziTGqbSXghefWRhiqp9QJdYTVVO2Pxc2/JHJIXr+2rWfTUkwiVqVj6I A6+MlIOZBm84Xg6tvuHqA33vfNcUZZm3W3p+7KRWKMD6to04C5aF8ic4JMv2lQWtbyo3 dIXLzkygiWPr0dT2EQx0UCiG8WvkLaOLLDhfym4gQMBmOaSUgkAaEHwLd1ELsVi6iMRM b1wjlYjZmHjljwa5jzNHU8aTataPE1HV3XwP2ufqizNK+mcnFOhD5hDx7rYcPr9C48B/ 9HyNtH3dGOKPJBVIyRzfdCqLxui+Ejuy4fPRGmftagLAfs2YhIsdvewIXCPPI52HTv4J aBIw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=VcybJkmwBQMtKXrQnmOu0GyKxnHgha+ygWkQ+HMIoN0=; b=kyKx5eLX/cdVonFhOPm4QgdCJMGG3RXvqJfpWWYipmXGfp/PZFM4WYRyGQQaMvddq5 LtosMEPCTYMkJym1IV7G7WgioYRu6FvdphyQJUurx389f2mV+7VgAb8LXNQ8Oix/OCco bf2Ek2pxl48NkBXacXwd0pOBmGRoTwDqIU2FZuEEXygXz5+4IAc8nZwqqCWvDt4spBoD vIa3f8e9RUuunCG7BwblVvbZrvdSgY0CW13vgWtyDCpParpGVi25yt0E9JtHYj3Y7GnF taNuAKUfLWWk+JVA1rTcp+Qq4VF6qYL+/YQBT/iRe/9ckLr9sZimih6U80PpR5yJwq24 PKRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:mime-version:references:in-reply-to:from :date:message-id:subject:to: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=VcybJkmwBQMtKXrQnmOu0GyKxnHgha+ygWkQ+HMIoN0=; b=gmXWPkVJEr0pPLhZa0s0ePKSHsuL8zTz6/TwBflFp9QUzQCdxAqiEGEnlBYhOiTbCr PfAa3ZUF4wcmudYEHK0oJ0Njh7IGiVHuBYY4wEXpZOuMSNu+rDIwi8PPoouXXnh68red qvNeVX7+t9aVqD8/bId06wNrEry1uZbV9Ugodruc5bQ+5wkeSuXAxtIiFlyDk7RVhoyz bUI5ch92mRgWcH/61QxZfeHYU4uGpqFKiEcS50uc6f6jBNMlpWkarpgBR5yya+i6GxXN KiNQate+XFxf/6BmAXb5K7pd7OB3aK0p0zDbOlrRETUehXmo0qKnZC93qknPLaj+uH5/ 7XVQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM5317k8PC1gAdNDdSaW0eIwaw5mcM8DfKulh5aFs1wf/UFvtV0+sZ aIIB4pH8gQrmYnUdw7I9yGk= X-Google-Smtp-Source: ABdhPJwG7fSEl9hyPeJ+M/uqpku1w19XvU6i5Jqc/ZScgECjV9o7nEkZlxobXfOT0QYwEweQMU88Ig== X-Received: by 2002:a05:600c:4f90:: with SMTP id n16mr11699894wmq.139.1623273617922; Wed, 09 Jun 2021 14:20:17 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a7b:c0d1:: with SMTP id s17ls133970wmh.0.gmail; Wed, 09 Jun 2021 14:20:15 -0700 (PDT) X-Received: by 2002:a05:600c:2059:: with SMTP id p25mr1711886wmg.56.1623273615760; Wed, 09 Jun 2021 14:20:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623273615; cv=none; d=google.com; s=arc-20160816; b=OxhGJ97VmMG47y5c+6ck/g31jrP4UVYzbewlAqKSlrbxx/vYURQdi2TRKLnRriwZpe mzFdiZwgSwVw4hAYIoGswveHFmpHVq/1EqE9J5T3G/q+LREUTQ/r3b8VNTWKes43AV5l XKBOw1MXJrVboFEJOuUtiBVJQBY3RjzhTqDeeAKIcCsonESApRlwlyrj019c0EoswVoO MzxZoSCG5KW0PIloT5vIIadOIVjjmlSMAVJ/eoGhiY3vpj4dlTTrvQQpfKqekM07GV9n kOa4L11noWebTHog3NbII3ioczvFMILUPLTEOk1zvZMf9/esCFXBZcgJwKzaS1MuHlHS HxxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=BIAzjwMATUR7BavdsSnQW4mYxsGmFVknCFBoeu2fk8k=; b=KZR2kkQWA4iwU/zBlavABlPCohKK+/Yk+7PxYzNGrV7sKIqh3uZ2xOuLUGbDZfiDTl af/zDgj2wf900vGRrkD5t1T/BcrgPXVYli+tTAafMvSMqfh9dNpYBBcL71VZfHFcMYQ8 XtdmRu7JNTmOl9CsUumMO2BKQRKSLXxopM2QL3fI8884AP8P36dE577R6AvWHcZlH4eS JL6B66w79mtnd+cUEz2/SWHcgwHIr8Yf+1p8mz29Xt01ncLWIKoDfs9QbUaQzzTL8s+2 IBCRnhSwqF1x+YMVucrMQCDIE00v6RNU7xwXfvJB90D2bHeLeMrVHHaXL7sa30NHM59J aCaA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qmd5KCnq; spf=pass (google.com: domain of anton.sharonov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::231 as permitted sender) smtp.mailfrom=anton.sharonov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com. [2a00:1450:4864:20::231]) by gmr-mx.google.com with ESMTPS id o24si197790wms.2.2021.06.09.14.20.15 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 09 Jun 2021 14:20:15 -0700 (PDT) Received-SPF: pass (google.com: domain of anton.sharonov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::231 as permitted sender) client-ip=2a00:1450:4864:20::231; Original-Received: by mail-lj1-x231.google.com with SMTP id r14so1668428ljd.10 for ; Wed, 09 Jun 2021 14:20:15 -0700 (PDT) X-Received: by 2002:a2e:6c12:: with SMTP id h18mr1281526ljc.125.1623273613751; Wed, 09 Jun 2021 14:20:13 -0700 (PDT) In-Reply-To: X-Original-Sender: anton.sharonov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qmd5KCnq; spf=pass (google.com: domain of anton.sharonov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::231 as permitted sender) smtp.mailfrom=anton.sharonov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:28571 Archived-At: On Wed, 9 Jun 2021 at 16:44, John MacFarlane wrote: > > > I'd like to get feedback about a possible change in the > way pandoc formats grid tables (used in markdown, rst, muse, > and haddock). > > Currently column widths are strictly enforced, so if a table > cell contains a long verbatim code snippet or a long URL, it > will be broken up so that the contents fit into the cell. > > An alternate behavior, suggested in > https://github.com/jgm/pandoc/issues/4572, > would be to let the cell expand past its prescribed width > to accommodate the "unbreakable" content. > > PR #4572 suggests making this available as an option, but > I'm thinking maybe it should just be the default behavior, > and I wonder if people could comment on that. We could emit > a warning when cell widths are expanded to fit content. Disclaimer: everything below is just humble opinion of one person. Said that, my vote goes as +1 to "make it an option". Arguments: Like it is now - breaking the verbatim content looks ugly of course. But expanding column sizes potentially leads to very wide total table width, hard to read and maintain - which in my opinion is even more ugly. So +1 for to make it an option - at least allow to keep current status quo. And since you are asking: Another idea to deal with this kind of problem ("unbreakable content" on inconvenient places like table cells) would be to create new syntax extension lets call it for the moment "AST segment replacement", controlled by an option (this "AST segment replacement" was described by my post few weeks ago - in short it can be something like a footnote, where "unbreakable content" can be defined outside the table and referenced from the table using "replacement pointer". Abstract syntax tree segment can be "transplanted" from segment definition point - expressed as kind of "footnote" - to that target position inside the table cell. That way "unbreakable content" can be replaced by some rather short generated identifier used as "replacement pointer", keeping the table column slim and good observable, outsourcing definition of long "inconvenient" segments to another places in the document, not disturbed by any table formatting concerns. Right now draft implementation of that idea exists in form of lua filter, utilizing self invented flavor of possible syntax. Having support for folding "unbreakable content" in that way from pandoc core as an optional behavior would be absolutely cool) Thanks and with best regards, Anton > > -- > You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/m2o8cf9jy7.fsf%40MacBook-Air.hsd1.ca.comcast.net.