Skip to content
This repository was archived by the owner on Nov 27, 2024. It is now read-only.
This repository was archived by the owner on Nov 27, 2024. It is now read-only.

Listitem label style is ignored #55

Open
@tekbec

Description

@tekbec

Text styling on Listitem label is ignored. The issues is here:

    @label.setter
    def label(self, label):  # type: (str) -> None
        self.listitem.setLabel(label)
        unformatted_label = strip_formatting("", label)
        self.params["_title_"] = unformatted_label
        self.info["title"] = unformatted_label

Before setting the listitem title, the styling is removed by the strip_formatting() function. I don't know if this is the expected behavior, but the only way I found to keep the styling is the workaround below:

listitem = Listitem.from_dict(game_links, label, params={'game_id': game['id']})
listitem.info.title = label

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions