new line in description when making a new point

72 views
Skip to first unread message

er3s...@gmail.com

unread,
Jul 23, 2012, 7:36:55 PM7/23/12
to simp...@googlegroups.com
Hello,

I have a quick question on how the description parameter works.
Going back to their example:

pnt = kml.newpoint(name="Kirstenbosch", description="A botanical Garden",
                   coords=[(18.432314,-33.988862)])  # lon, lat optional height

If I wanted in a new line to put something like "A very beautiful botanical garden", is there a way to do that?
I don't want all of my info all in the same line which, is why I ask

so it would in this case be like this:

A botanical Garden
A very beautiful botanical garden
instead of this:

A botanical Garden A very beautiful botanical garden

thanks =)


Kyle Lancaster

unread,
Jul 23, 2012, 9:36:50 PM7/23/12
to simp...@googlegroups.com, er3s...@gmail.com
Hi

A description can contain html tags, so you can use the tag <br/> for a new line, just insert it where you want a new line:

pnt = kml.newpoint(name="Kirstenbosch", description="A botanical Garden<br/>A very beautiful botanical garden",
                   coords=[(18.432314,-33.988862)])  # lon, lat optional height

For more information on the limitations of html in the description tag see: https://developers.google.com/kml/documentation/kmlreference#description

er3s...@gmail.com

unread,
Jul 23, 2012, 11:18:42 PM7/23/12
to simp...@googlegroups.com, er3s...@gmail.com
Hello,

I will try it out thanks =)
Reply all
Reply to author
Forward
0 new messages