Fix bug in text box widget and multiline strings with markup