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

Already on GitHub? Sign in to your account

Escape '&' in XMonadLog #18

koterpillar opened this Issue May 20, 2012 · 2 comments


None yet
2 participants

When, e.g. a window title contains an '&', and XMonad is set up to log to taffybar, the title is not updated and the following error is seen on taffybar's output:

Gtk-WARNING **: Failed to set text from markup due to error parsing markup: Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity - escape ampersand as &

travitch commented May 28, 2012

What pretty printer are you using in your logHook in xmonad.hs?
The two pretty printers included with taffybar (taffybarDefaultPP and taffybarPP) should handle the necessary escaping from what I can see. If you have a custom ppTitle in your pretty printer, the exported function taffybarEscape should be able to help.

Sorry - I figured that out already. However, the sample XMonad config in the documentation just suggests defaultPP which leads to this behavior. (Another issue with the documentation is, dbusLog takes just one argument, so should be dbusLogWithPP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment