i3-companion: fix monospace use when displaying workspace info

This commit is contained in:
Vincent Bernat 2022-01-12 12:25:18 +01:00
parent 9e62ef11fb
commit 2dd8caaaea

View file

@ -621,7 +621,7 @@ async def workspace_info(i3, event):
else:
first = "├─"
others = "│ "
content = format(child).replace("\n", f"\n{others}")
content = format(child).replace("\n", f"\n<tt>{others}</tt>")
children.append(f"<tt>{first}</tt>{content}")
children.insert(0, root)
return "\n".join(children)