![]()
From: Tom von Alten (tom_vonalten@boi.hp.com)
Date: Fri May 14 1999 - 09:35:24 CDT
I wrote:
> On line 451 of print.c, we've reached the end of the headers
> we're going to show, and the following code seems to get executed:
>
> if(pre /*set_showhtml && set_showheaders && pre*/) {
> fprintf(fp, "</PRE>\n");
> pre=FALSE;
> }
> fprintf(fp, "<P>\n");
>
> It appears that the test should be
> if(set_showhtml && pre) {
> rather than just (pre). Or maybe just (set_showhtml).
>
> I tried it out with just (set_showhtml) and the message looks
> right, but it ends up with a <P> in the <pre> block...
Well yeah - as per the code I quoted above. :-/ The obvious occurred to
me on the way to work this morning.
So, should the "<P>\n" fprintf be in the "if" block, too?
Cheers,
_____________ Hewlett-Packard Computer Peripherals Bristol
Tom von Alten mailto:Tom_vonAlten@boi.hp.com
This posting is for informational purposes only.
It is not a statement of the Hewlett-Packard Co.
![]()