From kry|ov@r00t @end|ng |rom gm@||@com  Thu Aug  5 19:42:23 2021
From: kry|ov@r00t @end|ng |rom gm@||@com (Ivan Krylov)
Date: Thu, 5 Aug 2021 19:42:23 +0200
Subject: [Rd] \Sexpr[results=hide] produces \verb{ newlines }
In-Reply-To: <24837.44825.296961.407663@stat.math.ethz.ch>
References: <20210729174838.658c0da7@trisector>
 <24837.44825.296961.407663@stat.math.ethz.ch>
Message-ID: <20210805194223.5e3cbdec@trisector>

Hello Martin,

On Sat, 31 Jul 2021 22:14:17 +0200
Martin Maechler <maechler at stat.math.ethz.ch> wrote:

> I have implemented a version of your patch in my local copy of
> R-devel and tested your example, also with  Rd2latex() ..
> interestingly   Rd2txt()  does not produce the extra new lines
> even without your patch.

That's interesting, indeed. I think that flushBuffer() is responsible
for collapsing multiple blank lines into one in that case, but they do
get preserved in the buffer up to before that.

> I plan to commit your proposal after the weekend unless has 
> reasons against that.

Thanks for the review!

-- 
Best regards,
Ivan



[Rd] \Sexpr[results=hide] produces \verb{ newlines }
Ivan Krylov