From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/33237 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "'Martin Ehlers' via pandoc-discuss" Newsgroups: gmane.text.pandoc Subject: Re: Pipe table content does not wrap in PDF Date: Thu, 26 Oct 2023 07:03:27 -0700 (PDT) Message-ID: <2f088d22-165a-4ded-9811-d93fcf01ce76n@googlegroups.com> References: <6d691fee-0237-4680-bfa1-ac220f46e116n@googlegroups.com> <1C6CF7A8-5918-4E83-9D09-14C6B40F38D3@gmail.com> <93d59e4d-d23e-4dca-ad50-80e970c7ba66n@googlegroups.com> <5E4C2B79-FE4D-4D8E-9422-7C15DD5D1F63@gmail.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_5966_79866307.1698329007723" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10273"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDCZVEVWW4BRBMPD5GUQMGQEZ35SSRQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Oct 26 16:03:33 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oa1-f56.google.com ([209.85.160.56]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1qw0xR-0002Qt-5E for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 26 Oct 2023 16:03:33 +0200 Original-Received: by mail-oa1-f56.google.com with SMTP id 586e51a60fabf-1e9fe00dac5sf1016895fac.2 for ; Thu, 26 Oct 2023 07:03:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1698329012; x=1698933812; darn=m.gmane-mx.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=xiTt2QoezqVk1382mrkVI69DSe/afRBVCr+K2KgeJeA=; b=U2jQjRrzbSj3PxSeLbhUXHkt828/WCf9f3DPtkAaCrDeRgBT5RyMnZFiYsx0EYqMTi z/31DOfIGSbyDqpVCUL9qMDdjHj27Ta/DGMlFnWrozN1K/B4wVtheG63Cm3fKDrn5Dhs fNogy04ieqcZGkECDs++cNuR0Rby7prMyF9u0SAZnLyYOCCkfF6ELSp+fiPvbF6Sg5Zj E8KLPBky4UsO1WuhKVnkb1bB6Vs4MavUV5P5Hi+loqseY649hxAAis97rpuBXLypteeI s0HQbz7YQswQiTtsLD8rKLSNTYrl5q8oNW8ES3urvuOLo5nZYQ/h6cZ+6IB6Ix94VQDE hg4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698329012; x=1698933812; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-sender:mime-version:subject:references:in-reply-to :message-id:to:from:date:x-beenthere:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xiTt2QoezqVk1382mrkVI69DSe/afRBVCr+K2KgeJeA=; b=i9NfV9lW5VQMZkGCqm9S7+4tDpYZEvkQ5rtW2yx0+La8ZK5suFTMHZyFQXtWa3QVJy BtzpwEYpcY+dwXUsKqB6f7BcT4VkY59PZMOD4/r3pOzyRnkFNKlgEQEXBP3Ac1QuuQFR MLwz6+lKIGUoWD+jApXTYPvJk57RZJMRM/MXFoOc+dz8BcxwvZAdCIvIkb1t0ZkGHXPP jsjdWUAGASa/r3rxa4JIosmq0Ky42rVXr22KXDpqR3dlrBw18P1Netxhz4ISd1MrvBBs 3mYaEY9ZLRnjTSofVgoyqUkOATv4Oji9l6v7o9/H5OW8aUAWYHtEKedJC X-Gm-Message-State: AOJu0YxTq/rq0YPgDAHR2XqgMAbmjh+DOHN3GZZo8foMbdopOCzhFCNc dP/hLHdZt98bL4WaEdjL0Xg= X-Google-Smtp-Source: AGHT+IG7BrsKguBnm1JyuDolsMi6v0PoCXAwnVk6t6KNBDOr0AI75cm9HaE7yAaEbof/95VaHRETOg== X-Received: by 2002:a05:6870:4c01:b0:1e9:cde8:6db0 with SMTP id pk1-20020a0568704c0100b001e9cde86db0mr24053914oab.50.1698329011824; Thu, 26 Oct 2023 07:03:31 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6870:3b0d:b0:1d4:eb1e:6831 with SMTP id gh13-20020a0568703b0d00b001d4eb1e6831ls3676391oab.0.-pod-prod-03-us; Thu, 26 Oct 2023 07:03:28 -0700 (PDT) X-Received: by 2002:a05:6870:d10f:b0:1e9:c975:2ae2 with SMTP id e15-20020a056870d10f00b001e9c9752ae2mr8354963oac.11.1698329008569; Thu, 26 Oct 2023 07:03:28 -0700 (PDT) In-Reply-To: <5E4C2B79-FE4D-4D8E-9422-7C15DD5D1F63-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> X-Original-Sender: martin.ehlers.ext-KQvIl+xY3vc@public.gmane.org X-Original-From: Martin Ehlers 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:33237 Archived-At: ------=_Part_5966_79866307.1698329007723 Content-Type: multipart/alternative; boundary="----=_Part_5967_484883977.1698329007723" ------=_Part_5967_484883977.1698329007723 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Using Pandoc's markdown instead of GFM indeed fixes the issue. Cell=20 contents are wrapped now. Thanks so much for your support! Kind Regards Martin John MacFarlane schrieb am Mittwoch, 25. Oktober 2023 um 18:36:33 UTC+2: > Two issues: > > 1) You're using gfm+pipe_tables, not pandoc's markdown. The special=20 > treatment of relative column widths in pipe tables is a pandoc innovation= ,=20 > not something GFM implements, so it doesn't work with gfm+pipe_tables > > 2) The raw HTML in the cells wouldn't pass through to PDF anyway... > > > > > On Oct 25, 2023, at 9:23 AM, 'Martin Ehlers' via pandoc-discuss < > pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> wrote: > >=20 > > Sure, this is markdown source code for the table I had attached as a=20 > screenshot: > >=20 > > | NX-OS configuration | Variables applied | Variable & Constansts | > >=20 > |------------------------------------------------------------------------= --------------------------------------------|------------------------------= ---------------------------------------------------------------------------= --------------------------------------------------------------------|------= ---------------------------------------------------------------------------= ---------------------------------------------------------------------------= -------------------| > > |
vlan 1523
name SAR-P_MDB_102_BIE_A
vn-segment=20 > 1001523
|
vlan \
name \
vn-segme= nt=20 > \
|
VLAN:
- VLAN_ID: 1523
- VLAN_NAME:=20 > SAR-P_MDB_x02_BIE_A
- VN_SEG: 1001523
| > > |
interface nve1
member vni 1001523
multisite=20 > ingress-replication
mcast-group 239.100.200.101
|
interfac=
e=20
> \\
member vni \
multisite=20 > ingress-replication
mcast-group \
|=20 >
INTERFACE_NVE1:
INTERFACE-CATEGORY: nve (const)
PORT: 1=20 > (const)
VNI: 1001523
MULTISITE_INGRESS_REPLICATION_FLAG: True
= =20 > M_GROUP: 239.100.200.101
| > > |
evpn
vni 1001523 l2
rd auto
route-target import=20 > auto
route-target export auto
|
evpn
vni \=20 > \
rd \
route-target import=20 > \
route-target export=20 > \
|
INTERFACE_NVE1:
=20 > INTERFACE-CATEGORY: nve (const)
PORT: 1 (const)
VNI: 1001523
= =20 > M_GROUP: 239.100.200.101
| > >=20 > > I have the same issue with all tables exceeding the column width, also= =20 > with simple text, i.e. without control statements like "
". > >=20 > > Kind Regards > > Martin > >=20 > > John MacFarlane schrieb am Dienstag, 24. Oktober 2023 um 19:14:08 UTC+2= : > > Can you post the markdown source for the table?=20 > >=20 > > > On Oct 24, 2023, at 1:10 AM, 'Martin Ehlers' via pandoc-discuss < > pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> wrote:=20 > > >=20 > > > Yes, some lines are longer than the column width. This is the command= =20 > I use to create the PDF:=20 > > >=20 > > > pandoc config_guide.md --wrap=3Dauto --ascii --from=3Dgfm+pipe_tables= =20 > --output=3DConfig_Guide.pdf=20 > > >=20 > > > Kind Regards=20 > > > Martin=20 > > >=20 > > > John MacFarlane schrieb am Montag, 23. Oktober 2023 um 18:14:18 UTC+2= :=20 > > > Are any of the lines of your markdown pipe table longer than column= =20 > width (e.g. 78 columns)? IF not, this feature doesn't kick in.=20 > > >=20 > > > > On Oct 23, 2023, at 6:17 AM, 'Martin Ehlers' via pandoc-discuss < > pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> wrote:=20 > > > >=20 > > > > Hi All,=20 > > > >=20 > > > > According to the Pandoc User's Guide, for pipe tables, "if any line= =20 > of the markdown source is longer than the column width, then the table wi= ll=20 > take up the full text width and the cell contents will wrap, with the=20 > relative cell widths determined by the number of dashes in the line=20 > separating the table header from the table body."=20 > > > >=20 > > > > However when I am converting markdown to PDF using LaTeX, content i= s=20 > not wrapped, and content exceeding the PDF page width is truncated instea= d.=20 > I have tried with different column and cell widths. Is this is a known=20 > issue, or do I miss something?=20 > > > >=20 > > > > Kind Regards=20 > > > > Martin=20 > > > >=20 > > > > --=20 > > > > You received this message because you are subscribed to the Google= =20 > Groups "pandoc-discuss" group.=20 > > > > To unsubscribe from this group and stop receiving emails from it,= =20 > send an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org=20 > > > > To view this discussion on the web visit=20 > https://groups.google.com/d/msgid/pandoc-discuss/6d691fee-0237-4680-bfa1-= ac220f46e116n%40googlegroups.com.=20 > > > >=20 > > >=20 > > > --=20 > > > You received this message because you are subscribed to the Google=20 > Groups "pandoc-discuss" group.=20 > > > To unsubscribe from this group and stop receiving emails from it, sen= d=20 > an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org=20 > > > To view this discussion on the web visit=20 > https://groups.google.com/d/msgid/pandoc-discuss/93d59e4d-d23e-4dca-ad50-= 80e970c7ba66n%40googlegroups.com.=20 > > >=20 > >=20 > > --=20 > > You received this message because you are subscribed to the Google=20 > Groups "pandoc-discuss" group. > > To unsubscribe from this group and stop receiving emails from it, send= =20 > an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit=20 > https://groups.google.com/d/msgid/pandoc-discuss/a7dd3efe-aa22-4536-90a6-= 6ccadf314573n%40googlegroups.com > . > > --=20 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 e= mail 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/2f088d22-165a-4ded-9811-d93fcf01ce76n%40googlegroups.com. ------=_Part_5967_484883977.1698329007723 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Using Pandoc's markdown instead of GFM indeed fixes the issue. Cell content= s are wrapped now.

Thanks so much for your support!

Kind Regards
Martin

John MacFarlane schrieb am M= ittwoch, 25. Oktober 2023 um 18:36:33 UTC+2:
Two issues:

1) You're using gfm+pipe_tables, not pandoc's markdown. The s= pecial treatment of relative column widths in pipe tables is a pandoc innov= ation, not something GFM implements, so it doesn't work with gfm+pipe_t= ables

2) The raw HTML in the cells wouldn't pass through to PDF anyway.= ..



> On Oct 25, 2023, at 9:23 AM, 'Martin Ehlers' via pandoc-di= scuss <pandoc-...@googlegroup= s.com> wrote:
>=20
> Sure, this is markdown source code for the table I had attached as= a screenshot:
>=20
> | NX-OS configuration = | Variables applied = = = | Variable & Constansts = = |
> |-----------------------------------------------------------------= ---------------------------------------------------|-----------------------= ---------------------------------------------------------------------------= ---------------------------------------------------------------------------= |--------------------------------------------------------------------------= ---------------------------------------------------------------------------= --------------------------|
> | <pre>vlan 1523<br> name SAR-P_MDB_102_BIE_A<br>= ; vn-segment 1001523</pre> = | <pre>vlan \<VLAN_ID\><br> name \<VLAN_NAME\><b= r> vn-segment \<VN_SEG\></pre> = | <pre= >VLAN:<br> - VLAN_ID: 1523<br> - VLAN_NAME: SAR-P_MDB_x02_BI= E_A<br> - VN_SEG: 1001523</pre> = |
> | <pre>interface nve1<br> member vni 1001523<br>= multisite ingress-replication<br> mcast-group 239.100.200.101</pr= e> | <pre>interface \<INTERFACE_CATEGORY\>\<PORT\><= br> member vni \<VNI\><br> multisite ingress-replication<= br> mcast-group \<M_GROUP\></pre> = | <pre>INTERFACE_NVE1:<br> INTERFACE-CATEGORY: nve (co= nst)<br> PORT: 1 (const)<br> VNI: 1001523<br> MULTISITE_I= NGRESS_REPLICATION_FLAG: True<br> M_GROUP: 239.100.200.101</pre>= ; |
> | <pre>evpn<br> vni 1001523 l2<br> rd auto<br= > route-target import auto<br> route-target export auto</pre>= ; | <pre>evpn<br> vni \<VNI\> \<VNI_TYPE\>= ;<br> rd \<ROUTE_DISTINGUISHER\><br> route-target import = \<ROUTE_TARGET_IMPORT\><br> route-target export \<ROUTE_TARG= ET_EXPORT\></pre> | <pre>INTERFACE_NVE1:<br> INTERFACE= -CATEGORY: nve (const)<br> PORT: 1 (const)<br> VNI: 1001523<= br> M_GROUP: 239.100.200.101</pre> = |
>=20
> I have the same issue with all tables exceeding the column width, = also with simple text, i.e. without control statements like "<br>= ;".
>=20
> Kind Regards
> Martin
>=20
> John MacFarlane schrieb am Dienstag, 24. Oktober 2023 um 19:14:08 = UTC+2:
> Can you post the markdown source for the table?=20
>=20
> > On Oct 24, 2023, at 1:10 AM, 'Martin Ehlers' via pand= oc-discuss <pandoc-...@google= groups.com> wrote:=20
> >=20
> > Yes, some lines are longer than the column width. This is the= command I use to create the PDF:=20
> >=20
> > pandoc config_guide.md --wrap=3Dauto --ascii --from=3Dgfm+pip= e_tables --output=3DConfig_Guide.pdf=20
> >=20
> > Kind Regards=20
> > Martin=20
> >=20
> > John MacFarlane schrieb am Montag, 23. Oktober 2023 um 18:14:= 18 UTC+2:=20
> > Are any of the lines of your markdown pipe table longer than = column width (e.g. 78 columns)? IF not, this feature doesn't kick in.= =20
> >=20
> > > On Oct 23, 2023, at 6:17 AM, 'Martin Ehlers' via= pandoc-discuss <pandoc-...@g= ooglegroups.com> wrote:=20
> > >=20
> > > Hi All,=20
> > >=20
> > > According to the Pandoc User's Guide, for pipe table= s, "if any line of the markdown source is longer than the column width= , then the table will take up the full text width and the cell contents wil= l wrap, with the relative cell widths determined by the number of dashes in= the line separating the table header from the table body."=20
> > >=20
> > > However when I am converting markdown to PDF using LaTeX= , content is not wrapped, and content exceeding the PDF page width is trunc= ated instead. I have tried with different column and cell widths. Is this i= s a known issue, or do I miss something?=20
> > >=20
> > > Kind Regards=20
> > > Martin=20
> > >=20
> > > --=20
> > > You received this message because you are subscribed to = the Google Groups "pandoc-discuss" group.=20
> > > To unsubscribe from this group and stop receiving emails= from it, send an email to pando= c-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.=20
> > > To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/6d= 691fee-0237-4680-bfa1-ac220f46e116n%40googlegroups.com.=20
> >=20
> >=20
> > --=20
> > You received this message because you are subscribed to the G= oogle Groups "pandoc-discuss" group.=20
> > To unsubscribe from this group and stop receiving emails from= it, send an email to pandoc-dis= cus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.=20
> > To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/93d59e4= d-d23e-4dca-ad50-80e970c7ba66n%40googlegroups.com.=20
>=20
>=20
> --=20
> 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-discus..= .@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/a7dd3efe-a= a22-4536-90a6-6ccadf314573n%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d= /msgid/pandoc-discuss/2f088d22-165a-4ded-9811-d93fcf01ce76n%40googlegroups.= com.
------=_Part_5967_484883977.1698329007723-- ------=_Part_5966_79866307.1698329007723--