Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Listitem label style is ignored #55

Open
tekbec opened this issue Oct 13, 2023 · 0 comments
Open

Listitem label style is ignored #55

tekbec opened this issue Oct 13, 2023 · 0 comments

Comments

@tekbec
Copy link

tekbec commented Oct 13, 2023

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant