Skip to content

Format of the message color issue #546

@kopr12

Description

@kopr12

There seems to be a problem with markup, I'm not sure where exactly is the problem, idea was to have separate colors for title and the body of the notification. I came up with this in the config file

format = "<b><span foreground='#fcaf3e'>%s</span></b>\n%b"

it works fine, however sometimes I did notice one problem with it but I didn't care enough to bother with it until now, problem is that in some cases title had the same color as the body, in this case white. Found out that if in the body of the message is the & symbol that would happen.

So, for example dunstify "Testing" "Example" works fine.
But dunstify "Testing" "Example & More" gives the problem described above.

Maybe it's escaping strings wrong or something like that, maybe there are more symbols like ampersand which would produce the same problem, I'm not sure, but I'm sure of this one.

Or maybe I'm doing something wrong with the format in the config file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions