in reply to Formatting CGI script error messages

spaces to   entities
If you do that, and it behaves any differently than a PRE tag, your browser is broken. Therefore, you're going through a lot of work for nothing.

I agree with another response in this thread... simply return a text/plain MIME type.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

  • Comment on •Re: Formatting CGI script error messages

Replies are listed 'Best First'.
Re^2: Formatting CGI script error messages
by shay (Beadle) on Nov 17, 2004 at 12:57 UTC

    Damn! Yes, you're quite right. But alternating spaces and   entities would work -- i.e. leave single spaces alone, but change pairs of spaces to "  ".

    Or is there any easier way to get "non-collapsing" spaces which are allowed to be broken across lines?

    - Steve