[Marble-bugs] [marble] [Bug 360918] There are no line breaks in the placemark description

strag via KDE Bugzilla bugzilla_noreply at kde.org
Tue Mar 29 21:10:18 UTC 2016


https://bugs.kde.org/show_bug.cgi?id=360918

--- Comment #1 from strag <strag1505 at mail.ru> ---
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>:

QString text = "<pre>";     //added tag <pre>
text += "string 1, \n";
text += "string 2, \n";
text += "string 3 \n";
text += "</pre>";              //added tag </pre>

As I understand it, it is necessary to add a "framing" of text by tags to
function setDescription(QString). I never participated in opensource projects,
so maybe someone can fix it before I'll understand how it's done.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Marble-bugs mailing list