I need to put different information in separate lines, I have a working Javascript library, but I can't force the text output to display a newline. Here is the relevant part of the Javascript:
var information = layer.objectAdd({
type:"tooltip",
clickable: true,
Title: "My title",
Description: "My description1 \nMy description2"});
Here is the desired output:
My description1
My description2
And here is what I get:
My description1 My description2
Why is this, I mean is there another way to jump to a newline?
Sorry if I missled someone, I have a Javascript library for generating tooltips. I cannot change it because it's not my decision to make. I need to make it work, and I can't use any HTML tags because I will get it printed out because it's not being rendered in HTML. Like, I just tried
Description: "My description1 <br /> My description2"});
And it just printed My description1 <br /> My description2. Same old, same old.
UPDATE: I have no control over it how is it displayed, I'm just filling in the available properties such as click able, Title, Description etc. And I've tried to add HTML inside Description, but it just outputs everything as a string no matter what code you write.