You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on a little cron-dashboard. This is what it looks like; from the terminal.
The idea is that my app will keep track of where all the logs are and that you can easily find the logs of the jobs that failed. But I don't just want to have users find logs in the terminal. I also want to export these to HTML. So I was super stoked when I learned rich basically just supports this.
I've printed the table via a Console which I've set to record and I've taken the liberty to also export it to HTML. This is where there is a subtle bug. Notice the subtle difference in the link-line under the red x.
I might imagine that we'd like to keep the colors consistent here. The link in the browser should carry the color of the parent. I think this is a bug, but if this is by design I'll gladly hear it.
Code
This is the code that is used inside the table.
f"[red][link={make_link()}.html]x[/link][/red]"
The text was updated successfully, but these errors were encountered:
I think that's due to the order of the <a> and <span> tags. It's probably generating <span><a>X</a></span> So the link style is taking preference. It should probably be <a><span>X</span></a> .
I'll have a look a that shortly. Unless you want to tackle that yourself? It should be an easy fix in export_html.
I'm working on a little cron-dashboard. This is what it looks like; from the terminal.
The idea is that my app will keep track of where all the logs are and that you can easily find the logs of the jobs that failed. But I don't just want to have users find logs in the terminal. I also want to export these to HTML. So I was super stoked when I learned rich basically just supports this.
I've printed the table via a
Console
which I've set to record and I've taken the liberty to also export it to HTML. This is where there is a subtle bug. Notice the subtle difference in the link-line under the redx
.I might imagine that we'd like to keep the colors consistent here. The link in the browser should carry the color of the parent. I think this is a bug, but if this is by design I'll gladly hear it.
Code
This is the code that is used inside the table.
f"[red][link={make_link()}.html]x[/link][/red]"
The text was updated successfully, but these errors were encountered: