[news.software.b] Unofficial bugfix for rn#53

ccea3@rivm05.rivm.nl (Adri Verhoef) (01/05/91)

  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)