public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: line breaking in grid table cells
Date: Wed, 09 Jun 2021 07:44:16 -0700	[thread overview]
Message-ID: <m2o8cf9jy7.fsf@MacBook-Air.hsd1.ca.comcast.net> (raw)


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.


             reply	other threads:[~2021-06-09 14:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-09 14:44 John MacFarlane [this message]
     [not found] ` <m2o8cf9jy7.fsf-jF64zX8BO0+iXxlc9qkzFr9bIa4KchGshsV+eolpW18@public.gmane.org>
2021-06-09 21:18   ` Anton Sharonov
     [not found]     ` <CAMoRF4n_mvcVJ6pW9N7xbjrvc3msnzWcG4D9WoiY+WFqjGD5iQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2021-06-09 22:26       ` John MacFarlane

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2o8cf9jy7.fsf@MacBook-Air.hsd1.ca.comcast.net \
    --to=jgm-tvlzxgkolnx2fbvcvol8/a@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).