Fix issue with underlines not displaying

Fixed an issue where a text block would not be underlined even if
an underline parameter was passed into the class.