W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2003

Re: Double Spaces in URI's

From: Fred Bone <Fred.Bone@dial.pipex.com>
Date: Tue, 11 Mar 2003 10:04:00 -0000
To: html-tidy@w3.org
Message-ID: <3E6DB490.16270.7F9F4F@localhost>

On 11 Mar 2003 at 11:27, Ben Noblet wrote:

> 
> Hi all,
> 
> I am new to the list, so apoligies if this has been dealt with before.
> I did search the archives but couldn't find anything.
> 
> I have a situation where double spaces in a URL are being converted to a
> single space.  If I have fix-uri on, then it gets converted to a single
> %20.  No other options appear to make any difference at all.
> 
> I am using TidyATL 1.0.0.1 and can reproduce this using TidyUI.  
> 
> Example:
> 
> <img src="/images/photo  one.jpg"/>
> 
> Becomes either
> 
> <img src="/images/photo one.jpg"/>
> Or
> <img src="/images/photo%20one.jpg"/>
> 
> In both cases the link is now broken.  It appears to have exactly the
> same issue with <a> tags.

The link was broken already, since spaces aren't allowed in URIs. Fix 
the spaces (replace with %20) with something else before running 
Tidy.
Received on Tuesday, 11 March 2003 05:05:21 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:53 GMT