Registered Member
|
Hello!
There is a problem with displaying information about the placemark. I wrote this code:
Using qDebug() the text displaying correctly: text = "string 1, string 2, string 3, string 4, string 5. " But in the placemark description it looks like this: How to make line breaks in the description? Thanks in advance for your help. |
KDE Developer
|
That looks indeed like a bug to me - could you file a bug report (or maybe even a patch) ?
|
Registered Member
|
Thanks for your answer! I have filed a bug report: https://bugs.kde.org/show_bug.cgi?id=360918
Last edited by strag on Tue Mar 29, 2016 8:51 pm, edited 1 time in total.
|
Registered Member
|
Hello!
I seem to have solved the problem. The placemark description is displayed using HTML. To preserve the original text formatting should be added the tags <pre> and </pre>. That is, in my example:
Then the text is displayed as I wanted: Probably wise to make the correction in the marble? |
KDE Developer
|
Ah, sorry. No idea what mislead me into assuming that using \n here would work.
The description in the popup is indeed supposed to be done in Rich text / HTML. Sorry, for the confusion |
Registered users: bancha, Bing [Bot], Evergrowing, Google [Bot], mesutakcan, Sogou [Bot]