🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.mail.mh
Article #1899

Re: Extra blank lines in MHL

#1899
From: gregg.g.wonderly
Date: Tue, 30 May 1989 02:53
23 lines
1467 bytes
From article <840@csisles.Bristol.AC.UK>, by neil@CompSci.Bristol.AC.UK (Neil Davies):
> 
> Does anyone out there know how to suppress the blank line that follows any
> field used with the formatfield option, eg
> 
>     Date:formatfield="%<(nodate{text})%{text}%|%(pretty{text})%>"
>     To:

The problem is more with dates than anything else.  Think of what ctime(3)
returns and you will understand why.  The solution is a code modification to
eliminate the newline from the buffer.

I would prefer that mhl behave more like scan(1) formatting where newlines are
output explicitly rather than implicitly.  Perhaps mhl style formatting should
be dropped in favor of the more flexible scan(1) formatting.  While we're at
it, perhaps the 1 line scan line could be extended to whatever is reasonable.
The fmtscan() function should accept a file indicator (FILE * or fd) so that
all of that silly buffer building and maintaining could be replaced with
simple I/O as each output character is derived/generated.  Comments?

-- 
-----
gregg.g.wonderly@att.com   (AT&T bell laboratories)
Technical Details
Message-ID: <1044@cbnewsc.ATT.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!att!cbnewsc!gregg
References: <840@csisles.Bristol.AC.UK>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!att!cbnewsc!gregg
From: gregg@cbnewsc.ATT.COM (gregg.g.wonderly)
Newsgroups: comp.mail.mh
Subject: Re: Extra blank lines in MHL
Message-ID: <1044@cbnewsc.ATT.COM>
Date: 30 May 89 02:53:52 GMT
References: <840@csisles.Bristol.AC.UK>
Organization: AT&T Bell Laboratories
Lines: 23