From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28573 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Extra Blank Line in Native AST for RST Input with Include Directive with :code: Date: Wed, 09 Jun 2021 15:27:27 -0700 Message-ID: References: <74b0adbe-6552-4553-98c4-f31e3afcdc31n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15760"; mail-complaints-to="usenet@ciao.gmane.io" To: "tkur...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" , pandoc-discuss Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBXEAQWDAMGQE7LLDKQQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Jun 10 00:27:44 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pf1-f183.google.com ([209.85.210.183]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lr6fn-0003s3-86 for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 10 Jun 2021 00:27:43 +0200 Original-Received: by mail-pf1-f183.google.com with SMTP id g22-20020a056a000796b02902f0483fd9e4sf5847839pfu.10 for ; Wed, 09 Jun 2021 15:27:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1623277662; cv=pass; d=google.com; s=arc-20160816; b=cgYg8t/tR9CZE93C58MNFKVWPgWwn7p8/qCYkkZktyorzj0CyI0SFIW2pJXx40+OUj jVD8fkiz4BJUNaAERSpcEwixt1AyQEdeMt1jiA4KjVn5w/rsVw4LWTFvbIqKnVvLvO1q vbFoo5AsQFIKZLSwWs2qs4znNLREvhiu1A/yxLdhnL8kllszjhqfgJQ8yZeNv9FGaBm2 dI5/lGWpYMhX/SHJOLG4arQScp1RedtcyBUGP3r/pr0QWBuHlj+gqe8a8E7ped4sNnjP cz9BdApxCnOPEjGLcqmKIABa2pd6EZjfXU0LZF6lqn+hHMmpajWM6bKDbdEjLUQA/a6O L8QA== 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:content-transfer-encoding :mime-version:message-id:date:references:in-reply-to:subject:to:from :sender:dkim-signature; bh=8rTgRHqam32UCOkZ3+JUaWPyIAnZmSmuI59xVmtdh/g=; b=NrlCE/FSbQ6f9QDIJs/AwADZ1lqlD0S43S5eSWEn+g1s01Y1L4ZO9gkXaTYQaB3hGV lGRLWDfRFHsJ7Y1JqDKzSqOYdYREF9NSDoHD+6vmp3xuHOSzW+nC9IapzaoiwSpYcczE +T8l1JmUxvjjJaJLSGhjo2yWQ/OABnbG/FV0zRXSl8Yj0xB4zXQ4Q1AlhMHhX8aS8xsd EXYDs+dxrNNXJV/4M+Ee5SwqU/4aCAE1rgn3/Iwk2dZkxAqzIZ3cqMY/EJXEh/6ilPkn kT+mnHJ7i7VFsBHu14ru68Zef6r+cqPZjE/AYDAqwbVMNdli78PV5xrXdsTCBt4GgP07 TUFQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=gxWidd6Z; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::429 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding: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=8rTgRHqam32UCOkZ3+JUaWPyIAnZmSmuI59xVmtdh/g=; b=MD/Kz7oPmQEPIbYzFsz8NDIfTrdGlBYjTAj2jsrHncg+jK5A5Gh9BDEBj4gl8EV+7I 9Opy4mtEe+MkQyFdHQl6ozgxCKo51+98gcW2N2MdbDQ/goCW8zR508NzPzFG/gxNEkR3 fDF6Siejqnn1hRsKvmupv4teaZD/uUbJuc/6+BMIubx+kK4/EvrugE17itpBLV2rYfgu 2xG/MdCyLTYfqhe/O/6wE8vypAPuq4l1Y/xEbzFEaVj/f0rIQyJrBw6Ozxq7Jy4KCfCp /u2PrBy7g8YpE3M2WaRG1i6vyBXjhzVaCCH6T4LKh6pF4ytcebppR17w/o9foVeJ3HNL zpAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:subject:in-reply-to:references :date:message-id:mime-version:content-transfer-encoding :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=8rTgRHqam32UCOkZ3+JUaWPyIAnZmSmuI59xVmtdh/g=; b=ZqHv7s+8A2sxCG7VZjAgTXI6mGuG8pflwyeWBZziExsEPpY+3HthQoPDc9bUGkr0HG hwUPFaYLwiXx6CVtlBgmkkJVPIP1bj/UEde9ol0jUGjY+9dkmPcetF5jXGu/YnIA0pS8 t8TEUNhR3st6OuDvvzS3VXAfjek4rkzNwg5RHZWP3XF/bNfLq0GCYnAHhlZL8LH1tAie aqIBcF2RiB4eJDv97cqm09at5Zo22fZsTPnxst/QFUE0t7szq3FAFUAX6xG603dsx+w0 RLQ2+6m0BqlyHm/B5xFXfxIZ+Yjw5zizkNfE0hTGIT70yncNs4MFOhA9ucp6Tk1LCAQH Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM533QdM78NSISWe4BWTBrL29HQ8joD7laoAhTgTRrX6akYGzov6RO kTs2qGet5yPyPftJeZ4dpk4= X-Google-Smtp-Source: ABdhPJxf4feaJm12xMOCUluUU1SGb2e+nV3J6wR/+pho2paVfQugUEYYu8Cnqylrva4xh87N99mgdw== X-Received: by 2002:a63:3603:: with SMTP id d3mr1832478pga.346.1623277662006; Wed, 09 Jun 2021 15:27:42 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a65:6701:: with SMTP id u1ls1012295pgf.10.gmail; Wed, 09 Jun 2021 15:27:40 -0700 (PDT) X-Received: by 2002:a62:6d07:0:b029:2e9:1e3c:ad54 with SMTP id i7-20020a626d070000b02902e91e3cad54mr1675097pfc.46.1623277659870; Wed, 09 Jun 2021 15:27:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623277659; cv=none; d=google.com; s=arc-20160816; b=Yk+XipbxN/Yomw2qlOZ9vWPqcV12CQInBndulC23BdlKTb2gEn03OufCHL/x9fSe6O kcxqg23cyN4jt+t2XWVskyToWkui0WoqW+JboYKdw5Kt+Xl4BEhPnRpyFhAlmDwm5dgF DYj2o8jwdSZIvwBhbzIe75bTqgQ8y//V5kLCykRsxQDr0gcJF+WWcvxanhB8/NJszGvM l4dXabFhyb9J4iIuD8PERTjSjQzbQ90qCyRQR3CT4yDOj7EdBRZTxfiZrzbjAqnDkXeu 3uY+IL8zKeUts1kpHY8zeZxKknLMW+Z235gZUKHjg1VAEE+ixcmolgIPX/W0rbiWzLZ3 8QYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:dkim-signature; bh=TBng6Huo8IsOSay32S0UxShjKeLBQHD0twXutXt0Z5w=; b=SgWoWqNQBqnqG9TnaW8ZnaMuj7aZfAxV1bgepdT5+RscZjl43YMUkkS4/yLncK5t4w +UU617sxusY0hnwWrayWBHAH6RsnqnYYzSxFed1a7zZsc3kku7Jh5LtTf4h2415kF2AK C6fGy51IcyoUnQmGgmOA9ihODk4eq7Yw/TzAVwuh4tuldTMlLrHEjBwnFml9i0uptoaX xXzy955dbTZ02RwC7JytddmKcfrYOM+lLszN83lxR/o7bo3OU0DGDfZQFn9jvASFlxrf HK95iuQyTH+1yrhFhO+/XXZxUyGnzDPG5hmqu/reocDojpZFQhaycvEIaA9eMKBoBm44 YUZg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=gxWidd6Z; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::429 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com. [2607:f8b0:4864:20::429]) by gmr-mx.google.com with ESMTPS id b3si1012509pjz.1.2021.06.09.15.27.39 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 09 Jun 2021 15:27:39 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::429 as permitted sender) client-ip=2607:f8b0:4864:20::429; Original-Received: by mail-pf1-x429.google.com with SMTP id u18so19724685pfk.11 for ; Wed, 09 Jun 2021 15:27:39 -0700 (PDT) X-Received: by 2002:a63:3449:: with SMTP id b70mr1912904pga.292.1623277659198; Wed, 09 Jun 2021 15:27:39 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id z22sm488592pfa.157.2021.06.09.15.27.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Jun 2021 15:27:38 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 9DBD9A23E; Wed, 9 Jun 2021 18:27:27 -0400 (EDT) In-Reply-To: <74b0adbe-6552-4553-98c4-f31e3afcdc31n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 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 header.s=20150623 header.b=gxWidd6Z; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::429 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-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:28573 Archived-At: If it's a regression, why don't you submit a report on our bug tracker. This will ensure that we have a look. "tkur...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" writes: > I see that this was fixed in=20 > commit https://github.com/jgm/pandoc/commit/37e68a818bd0adafa4b90048eab0e= fc94a4980c4=20 > but it I noticed today that it's back. > > pandoc version: > pandoc 2.14.0.1 > Compiled with pandoc-types 1.22, texmath 0.12.3, skylighting 0.10.5.1, > citeproc 0.4.0.1, ipynb 0.1.0.1 > > OS Version:=20 > Mac OS X, Version 10.15.7, Build 19H1030 > > To reproduce, run=20 > pandoc -r rst -w native -o simple.native simple.rst > > give the following two files (delimited by lines with equals signs) > =3D=3D=3D=3D=3D simple.rst =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D > .. include:: three.txt > :code: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > =3D=3D=3D=3D=3D three.txt =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > 1st line. > 2nd line. > 3rd line. > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > That produces: > =3D=3D=3D=3D=3D simple.native =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D > [CodeBlock ("",[""],[("code","")]) "1st line.\n2nd line.\n3rd line.\n\n"] > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > Notice the *two* newlines at the end. > > On Sunday, July 12, 2020 at 4:48:44 PM UTC-4 John MacFarlane wrote: > >> >> Okay, I see how to fix this and will push a fix soon. >> >> John MacFarlane writes: >> >> > I see why this is happening. In the RST reader, at line 487, we >> > have >> > >> > let contents' =3D T.unlines contentLines'' <> "\n" >> > >> > which will produce \n\n. I have no idea why the "\n" was added >> > originally. >> > >> > This was added in 8fcf66453cc4f9d1cf9413aa466477e56290d733 >> > >> > >> > "T. Kurt Bond" writes: >> > >> >> Note >> >> >> >> *The ``text/plain`` alternative may look =E2=80=A6 odd.* >> >> >> >> I'm trying to make this readable both as text/html e-mail and=20 >> text/plain but >> >> have little control over how the text/plain alternative comes out. I'= ve >> >> added extra horizontal rules before the included files to make the fi= le >> >> contents stand out more, even though the text/html alternative doesn'= t=20 >> need >> >> it. Unfortunately, the automatic process that converts the text/html >> >> alternative >> >> into the text/plan alternative leaves blank lines before and after th= e=20 >> file >> >> contents, which is distressing since the bug I'm talking about is abo= ut=20 >> an >> >> extra blank line. Gmail, sometimes I hate you. >> >> >> >> It turns out that the -w native output of an RST input file with an >> >> include directive >> >> with the :code: option shows that there is an extra blank line at the= =20 >> end >> >> of the CodeBlock in the AST. This causes the generated output for HTM= L,=20 >> ms, >> >> LaTeX, and ConTeXt to have extra blank lines at the ends of those cod= e >> >> blocks. >> >> >> >> My Pandoc version is: >> >> >> >> pandoc 2.9.2.1 >> >> Compiled with pandoc-types 1.20, texmath 0.12.0.1, skylighting 0.8.3.= 2 >> >> >> >> My OS information is: >> >> >> >> Mac OS X, Version 10.15.4, Build 19E287 >> >> >> >> I generated the output to check with the following commands: >> >> >> >> pandoc -r rst -w native --output=3Delii-rst.native elii.rst >> >> pandoc -r rst -w html --output=3Delii-rst.html elii.rst >> >> pandoc -r rst -w ms --output=3Delii-rst.ms elii.rst >> >> pandoc -r rst -w latex --pdf-engine=3Dxelatex --output=3Delii-rst.ltx= =20 >> elii.rst >> >> pandoc -r rst -w context --output=3Delii-rst.ctx elii.rst >> >> >> >> (I'm only going to include the native and HTML output in this message= ,=20 >> but >> >> I did check the other output formats.) >> >> >> >> So, for the ReStructuredText input (file elii.rst): >> >> ------------------------------ >> >> >> >> Extra Line in Include Directive Output for HTML, ms, LaTeX, and ConTe= Xt=20 >> Output >> >>=20 >> @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@= @@@@@@ >> >> >> >> Here's a ``include`` directive **without** a ``:code:`` option: >> >> >> >> .. include:: three.txt >> >> >> >> Did it have an extra line at the end? **No**, in HTML, ms, LaTeX, >> >> and ConTeXt output. Note that this will not show up when the HTML is >> >> rendered as a web page, just in the HTML source itself. >> >> >> >> Here's a ``include`` directive with a ``:code:`` option: >> >> >> >> .. include:: three.txt >> >> :code: >> >> >> >> Did it have an extra line at the end? **Yes**, in HTML, ms, LaTeX, >> >> and ConTeXt output. >> >> >> >> ------------------------------ >> >> >> >> which includes a text file (three.txt) using the include directive wi= th=20 >> a >> >> :code: option: >> >> ------------------------------ >> >> >> >> 1st line. >> >> 2nd line. >> >> 3rd line. >> >> >> >> ------------------------------ >> >> >> >> the resulting native output (elii-rst.native) is generated: >> >> ------------------------------ >> >> >> >> [Header 1=20 >> ("extra-line-in-include-directive-output-for-html-ms-latex-and-context-o= utput",[],[]) >> >> [Str "Extra",Space,Str "Line",Space,Str "in",Space,Str >> >> "Include",Space,Str "Directive",Space,Str "Output",Space,Str >> >> "for",Space,Str "HTML,",Space,Str "ms,",Space,Str "LaTeX,",Space,Str >> >> "and",Space,Str "ConTeXt",Space,Str "Output"] >> >> ,Para [Str "Here's",Space,Str "a",Space,Code ("",[],[]) >> >> "include",Space,Str "directive",Space,Strong [Str "without"],Space,St= r >> >> "a",Space,Code ("",[],[]) ":code:",Space,Str "option:"] >> >> ,Para [Str "1st",Space,Str "line.",SoftBreak,Str "2nd",Space,Str >> >> "line.",SoftBreak,Str "3rd",Space,Str "line."] >> >> ,Para [Str "Did",Space,Str "it",Space,Str "have",Space,Str >> >> "an",Space,Str "extra",Space,Str "line",Space,Str "at",Space,Str >> >> "the",Space,Str "end?",Space,Strong [Str "No"],Str ",",Space,Str >> >> "in",Space,Str "HTML,",Space,Str "ms,",Space,Str >> >> "LaTeX,",SoftBreak,Str "and",Space,Str "ConTeXt",Space,Str >> >> "output.",Space,Str "Note",Space,Str "that",Space,Str "this",Space,St= r >> >> "will",Space,Str "not",Space,Str "show",Space,Str "up",Space,Str >> >> "when",Space,Str "the",Space,Str "HTML",Space,Str "is",SoftBreak,Str >> >> "rendered",Space,Str "as",Space,Str "a",Space,Str "web",Space,Str >> >> "page,",Space,Str "just",Space,Str "in",Space,Str "the",Space,Str >> >> "HTML",Space,Str "source",Space,Str "itself."] >> >> ,Para [Str "Here's",Space,Str "a",Space,Code ("",[],[]) >> >> "include",Space,Str "directive",Space,Str "with",Space,Str >> >> "a",Space,Code ("",[],[]) ":code:",Space,Str "option:"] >> >> ,CodeBlock ("",[""],[]) "1st line.\n2nd line.\n3rd line.\n\n" >> >> ,Para [Str "Did",Space,Str "it",Space,Str "have",Space,Str >> >> "an",Space,Str "extra",Space,Str "line",Space,Str "at",Space,Str >> >> "the",Space,Str "end?",Space,Strong [Str "Yes"],Str ",",Space,Str >> >> "in",Space,Str "HTML,",Space,Str "ms,",Space,Str >> >> "LaTeX,",SoftBreak,Str "and",Space,Str "ConTeXt",Space,Str "output."]= ] >> >> >> >> ------------------------------ >> >> >> >> If you look at the CodeBlock element you can see it ends with \n\n. T= he >> >> original included text file ends with just one \n. >> >> >> >> The HTML output (elii-rst.html) is: >> >> ------------------------------ >> >> >> >> > id=3D"extra-line-in-include-directive-output-for-html-ms-latex-and-conte= xt-output">Extra >> >> Line in Include Directive Output for HTML, ms, LaTeX, and ConTeXt >> >> Output >> >>

Here's a include directive without a >> >> :code: option:

>> >>

1st line. 2nd line. 3rd line.

>> >>

Did it have an extra line at the end? No, in HTML= , >> >> ms, LaTeX, and ConTeXt output. Note that this will not show up when >> >> the HTML is rendered as a web page, just in the HTML source >> >> itself.

>> >>

Here's a include directive with a :code: >> >> option:

>> >>
1st line.
>> >> 2nd line.
>> >> 3rd line.
>> >>
>> >> 
>> >>

Did it have an extra line at the end? Yes, in >> >> HTML, ms, LaTeX, and ConTeXt output.

>> >> >> >> ------------------------------ >> >> >> >> I've checked and HTML, ms, LaTeX, and ConTeXt output all have these= =20 >> blank >> >> lines at the end of generated text for those code blocks. >> >> ------------------------------ >> >> >> >> *Note:* This message was written as RST input with include directives= =20 >> with >> >> the :code: option but does not have the extra blank lines at the ends= of >> >> the included code (at least in the text/html alternative, see the not= e >> >> about the text/plain alternative at the beginning of this message)=20 >> because >> >> I preprocessed it with >> >> >> >> pandoc -s -r rst -w rst -o elii-email.rst elii-email-in.rst >> >> >> >> which converted the include directives with the :code: option to >> >> inline code directives, >> >> which don't the extra lines at the end. Very useful workaround. I use= =20 >> *GNU >> >> Make* to build all the various generated files. >> >> >> >> --=20 >> >> T. Kurt Bond, tkur...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, https://tkurtbond.github.io >> >> >> >> --=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, sen= d=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/CAN1EhV_L54%3DmKnSxiNwK= NoKZ2CXNe7pVXM8ZtBe_D%2BkAZ_KURg%40mail.gmail.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= email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/msgi= d/pandoc-discuss/74b0adbe-6552-4553-98c4-f31e3afcdc31n%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/m2sg1qvflc.fsf%40MacBook-Pro-2.hsd1.ca.comcast.net.