Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!hp4nl!rivm!ccea3 From: ccea3@rivm05.rivm.nl (Adri Verhoef) Newsgroups: news.software.b Subject: Unofficial bugfix for rn#53 (Pnews) Message-ID: <1991Jan5.020303.11401@rivm.nl> Date: 5 Jan 91 02:03:03 GMT Sender: news@rivm.nl Organization: Rijksinstituut voor Volksgezondheid & Milieuhygiene, Bilthoven,NL Lines: 41 Originator: ccea3@rivm05 I like the idea of tossing out the unused header lines by Pnews, but in the way that it is done by rn#53, the entire article is scanned for unused header lines. This will cause lines like Summary: , OBJ: and Example: to disappear from the entire article. Which we don't want to happen. ==> Unoffical bugfix for removing blank lines from the header. (OLD-Pnews.SH is Pnews.SH from rn#53. Line numbers may be incorrect.) *** OLD-Pnews.SH Fri Jan 4 23:43:50 1991 --- Pnews.SH Sat Jan 5 02:08:26 1991 *************** *** 511,518 fi case "$tryinews" in yes) ! if $grep -v '^[A-Z][A-Za-z\-]*: *$' $tmpart | $inews -h ; then ! : null else state=rescue --- 511,517 ----- fi case "$tryinews" in yes) ! if $sed -e '1,/^$/{' -e '/^[A-Z][-A-Za-z]*: *$/d' -e '}' $tmpart | $inews -h ; then : null else state=rescue -- Regards, Adri Verhoef (a3@rivm.nl)