Fixed a bug that meant the bar always refreshed, even when the text was empty. Also added support for Pango markup.