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

markup not working for tztime #443

Open
Sviests opened this issue Dec 23, 2020 · 5 comments
Open

markup not working for tztime #443

Sviests opened this issue Dec 23, 2020 · 5 comments

Comments

@Sviests
Copy link

Sviests commented Dec 23, 2020

Hi!

I`ve been configuring my bar for the past few days and I cannot manage to get the tztime module to use markup. Other modules have no issue with this.

Config:
image

Result:
image

@cherti
Copy link
Contributor

cherti commented Jan 5, 2021

The tztime module has a different approach to content formatting, possibly due to the fact that, as the resulting string will get handed down as a template to the "fill with actual time"-function. Hence, you either need to use a combination of format and format_time (see manpage) or, alternatively, run master with this PR included, which drive-by fixes your problem as well, if I am not mistaken. The PR in question has not made it into a release, though, if I'm not mistaken, so your way of formatting is not yet working.

@snprajwal
Copy link

snprajwal commented Jan 9, 2021

For tztime, if you want to use markup, use format=<markup>%time</markup> and put your format in format_time

@Sviests
Copy link
Author

Sviests commented Jan 10, 2021

For tztime, if you want to use markup, use format=<markup>%time</markup> and put your format in format_time

Unfortunately this does not work

The tztime module has a different approach to content formatting, possibly due to the fact that, as the resulting string will get handed down as a template to the "fill with actual time"-function. Hence, you either need to use a combination of format and format_time (see manpage) or, alternatively, run master with this PR included, which drive-by fixes your problem as well, if I am not mistaken. The PR in question has not made it into a release, though, if I'm not mistaken, so your way of formatting is not yet working.

I will build from sources and report back, thanks!

@snprajwal
Copy link

snprajwal commented Jan 10, 2021

Unfortunately this does not work

I am so sorry I forgot about the quotes. Please try format="<markup>%time</markup>" and put your format in format_time

@Sviests
Copy link
Author

Sviests commented Jan 10, 2021

Unfortunately this does not work

I am so sorry I forgot about the quotes. Please try format="<markup>%time</markup>" and put your format in format_time

I added the quotes myself, but it did not work. It could be that I`m using the release before the mentioned PR. I will build from source and test

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

3 participants