W3C home > Mailing lists > Public > www-amaya@w3.org > January to March 2003

Re: Missing space

From: Irene Vatton <irene.vatton@inrialpes.fr>
Date: Thu, 2 Jan 2003 11:47:25 +0100
To: "Jose Carlos Santos" <jcsantos@fc.up.pt>
Cc: emmanuelle@sidar.org, www-amaya@w3.org
Message-Id: <20030102114725.28bf0224.irene.vatton@inrialpes.fr>

On Sat, 21 Dec 2002 17:35:22 -0000
"Jose Carlos Santos" <jcsantos@fc.up.pt> wrote:

> > Hi Josť Carlos / Hola Josť Carlos
> > 
> > I don't believe that that effect is a " bug ", simply, how sense has that
> > the space is marked as <strong>?
> If I type <strong>a b</strong> then I get a space between "a" and "b".
> Why don't I get a space when I put a space just before </strong>?
> > If you put the code in the following way you will obtain the wanted result:
> > <p><strong>Note:</strong> Note.</p>
> > And I believe that that is the correct form of making it, because the space
> > in any case will be something as important as to go marked as <strong>
> I do not see why this form is more correct than the one that I have posted.
> I also do not understand why do you say that, in your suggestion, the space
> "will be something as important as to go marked as <strong>". Finally,
> and the most important aspect of this, according to the HTML rules the
> space should appear.

Emamanuelle is right. As long as there is no indication for preserving spaces, 
spaces and new lines just after the start tag and just before the end tag are ignored.
So "<strong>     a and b      </strong>" is equivalent to "<strong>a and b</strong>".

In your case you have to put the space after the end tag.

Happy new year
Received on Thursday, 2 January 2003 05:47:37 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:53:27 UTC