Path: csiph.com!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Ben Bacarisse Newsgroups: comp.programming Subject: Re: A little puzzle. Date: Tue, 22 Nov 2022 13:00:58 +0000 Organization: A noiseless patient Spider Lines: 30 Message-ID: <87a64jkut1.fsf@bsb.me.uk> References: <875yf8nijb.fsf@bsb.me.uk> <86ilj7ahsv.fsf@linuxsc.com> MIME-Version: 1.0 Content-Type: text/plain Injection-Info: reader01.eternal-september.org; posting-host="9b85f22d308ce2c1806d1ce4165d5a1d"; logging-data="114436"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/i/UVnxMJAI90WRLF9xN20GVyiNWdNWx8=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Cancel-Lock: sha1:66hdvGcHl2PHycA7w/+u2/0yvy4= sha1:4aooM4XIAzXpXe7U6n7t/Nnraa4= X-BSB-Auth: 1.37d09d7bf9f7d6d7bc15.20221122130058GMT.87a64jkut1.fsf@bsb.me.uk Xref: csiph.com comp.programming:15934 Tim Rentsch writes: > The question I think you're asking is to write a function like this Yes, but I deliberately did not present the question with this degree of clarity! I wanted to present the problem as I came across it because what little fun it offers comes from clarifying the issue. >> Though I am not sure this merits the term "puzzle", I suggest that >> solutions be posted with some spoiler protection. > > That's good, thank you for the reminder. Your explanation of the issue is, to my mind, a teeny tiny spoiler put "above the fold". >> Do all the news >> readers used by programmers (or ex programmers) all respect the presence >> of a form-feed character... >> Next page... > > Mine does, for some values of "respect". It does have the property > that it hides what follows. Yes. In the old days (which is only the late 80s in this case) I think all newsreaders would require some action to see that part of a message after a form feed, so that was how spoilers were put "below the fold". -- Ben.