Bug 330564

Summary: Text labels are not treated as html when include new line characters in the middle of text
Product: [Applications] kdialog Reporter: Nikita Zlobin <nick87720z>
Component: generalAssignee: Brad Hards <bradh>
Status: RESOLVED NOT A BUG    
Severity: wishlist CC: cfeck, tomashnyk
Priority: NOR    
Version First Reported In: 1.0   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

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.