Bug 330564 - Text labels are not treated as html when include new line characters in the middle of text
Summary: Text labels are not treated as html when include new line characters in the m...
Status: RESOLVED NOT A BUG
Alias: None
Product: kdialog
Classification: Applications
Component: general (other bugs)
Version First Reported In: 1.0
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: Brad Hards
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-30 05:19 UTC by Nikita Zlobin
Modified: 2026-01-17 20:50 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nikita Zlobin 2014-01-30 05:19:15 UTC
Currently msgbox is known to do it. But in progress bar it would be also useful: in my example i'm placing there some other download status data (total size of download, speed and remaining time) in format: "value: $val\t| ", which could be like this: "<b>value:</b> $val\t| " or something else. Currently tags are handled as plain text.

Reproducible: Always
Comment 1 Christoph Feck 2014-02-05 23:24:33 UTC
I am trying this command:

    kdialog --progressbar "<b>Test</b>"

and it displayed the "Test" text in bold face. Could you please clarify the issue so that I can reproduce?
Comment 2 Nikita Zlobin 2014-02-06 10:01:27 UTC
It seems to be narrower. One-line text is rendered properly, but with some '\n' chars it is treated as plain text.
Comment 3 Nikita Zlobin 2014-02-06 10:04:10 UTC
I completely forgot, that in html mode <br> tag should be used! Is it ok, that EOL chars disable html interpretation?
Comment 4 Nikita Zlobin 2014-02-06 10:11:49 UTC
Hm, it seems to be common behavior of kdialog, if not kde or even qt %).
Comment 5 Nikita Zlobin 2014-04-08 05:22:30 UTC
Solved problem by creating pure html source in komposer, without shell specifics %)
Comment 6 tomashnyk 2026-01-17 20:50:42 UTC
kdialog --progressbar "<b>Test</b><br>\nTest</b>" is rendered in bold but on one line - I think that is ok character, you can use <br> to get a newline.