hendriksaragih / kml-samples

Automatically exported from code.google.com/p/kml-samples
0 stars 0 forks source link

In <name> tag, multiples spaces must be preceeded by a character #168

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

Relevant Application(s): 
Google Earth for windows, versions 4x and 3x

Steps to Reproduce: 
1) Multiple spaces are not displayed unless preceded by a character. 2) &nbsp; 
does not display spaces unless preceeded by a character.

<name> test</name> trims off the leading spaces
<name>x test</name> displays the multiple spaces

If using a CDATA section, there is a nice trick. Preceed the spaces with a "do 
nothing" url tag. The tag is not displayed, but allows the leading spaces to be 
displayed.
<name><![CDATA[<b/>&nbsp;&nbsp;&nbsp;test]]></name> displays the leading spaces

Note: if not preceeded by a character, &nbsp; is displayed literally. It does 
not display spaces.
<name><![CDATA[&nbsp;&nbsp;test]]></name> displays exactly &nbsp;&nbsp;test

Finally, if leading spaces are added using the "properties" editor of Google 
Earth, then those leading spaces are displayed. However, if the item is saved 
to the hard drive, then re-opened, the leading spaces are not displayed.

Reported By: OwhyheeRover

Original issue reported on code.google.com by api.roman.public@gmail.com on 14 Aug 2008 at 10:54