|
next
|
Subject: incorrectly deleting space Author: Gerald Nelson Date: 14 Jul 2002 04:09 PM
|
I think the following behavior is a bug. When I use the indent xml tags on the material below, the space between the closing emphasis tag and the word Columns is deleted.
(Key Question) Columns 1 through 4 of the accompanying table show the marginal utility, measured in terms of utils, which Ricardo would get by purchasing various amounts of products A, B, C, and D. Column 5 shows the marginal utility Ricardo gets from saving. Assume that the prices of A, B, C, and D are $18, $6, $4, and $24, respectively, and that Ricardo has a money income of $106.
|
top
|
Subject: Re: incorrectly deleting space Author: (Deleted User) Date: 16 Jul 2002 06:40 AM
|
At 20.52 15/07/2002 -0400, you wrote:
>From: "Gerald Nelson"
>
>Thanks for the tip. But I still wonder about this. I don't want to
>preserve all white space. Isn't there a difference in xml between a single
>space and multiple spaces?
No, there is no difference between a single space or multiple space before
and after a fragment of text; because these could be formatting spaces,
they are by default removed and replaced by the tabs or spaces needed to
properly indent the text.
If you don't want to enable the setting to keep all these spaces (note that
text fragments entirely made of whitespace are still removed), you can
selectively preserve them by adding an xml:space="preserve" attribute to
the node containing the text.
In your example, this would mean write
{para xml:space="preserve"}{emphasis}(Key Question){/emphasis} Columns 1
through 4 of the accompanying table show the marginal utility, measured in
terms of utils, which Ricardo would get by purchasing various amounts of
products A, B, C, and D. Column 5 shows the marginal utility Ricardo gets
from saving. Assume that the prices of A, B, C, and D are $18, $6, $4, and
$24, respectively, and that Ricardo has a money income of $106.{/para}
Alberto
|
|
|