Re: Small bug in LWP/Protocol/file.pm

Carey (c.evans@student.canterbury.ac.nz)
Tue, 14 Jan 1997 12:03:45 +1300 (NZDT)


On 13-Jan-97 Gisle Aas wrote:
>
[file.pm patch]
> 
> Thanks.  Your patch has been applied to my source.
> 
> What is the problem with multiple spaces and control characters?

It only affects the output.  HTML compresses multiple spaces to one,
except in <PRE>.  It might even break the line on the space if the file
name is long enough.  This could be fixed by replacing spaces with
"&nbsp;" - I think most browsers support this now, as does
HTML::FormatText.

I don't have the relevant standards to hand, but I don't think "&#7;",
for example, is allowed in HTML.  I don't know what would be any better
though - maybe ^G or "<EM>^G</EM>"?

-- 
            Carey Evans  <*>  c.evans@student.canterbury.ac.nz

              "As a concept, virtual reality seems to appeal
               to people who spend a lot of time indoors."  - Gregory Benford