1
Fork 0

Escape ampersands so pango can render it with i3status-rust.

This commit is contained in:
Bauke 2024-03-11 15:47:24 +01:00
parent 0c19d38a51
commit c067ad2f8e
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ async function getStatus(): Promise<Status> {
async function getCurrentSong(): Promise<void> {
const status = await getStatus();
if (status.status === "playing") {
console.log(`${status.artist} - ${status.title}`);
console.log(`${status.artist} - ${status.title}`.replaceAll("&", "&amp;"));
}
}