in reply to Re: Formatting CGI script error messages
in thread Formatting CGI script error messages
Just specifying a fixed-width font doesn't address the problem of wanting to preserve whitespace -- HTML collapses multiple consecutive spaces to single spaces, and also treats newlines as spaces.
Using <pre> tags after "hard-wrapping" the text to a reasonable width is certainly an option, but I thought it would be nicer if it wrapped to the browser's window size. A fixed paragraph width can't account for variations in the font size in each user's browser.
- Steve
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: do it dynamically
by ww (Archbishop) on Nov 17, 2004 at 14:00 UTC |