Fix issue with underlines not displaying

Fixed an issue with underlines not display for text blocks even when
an underline parameter is passed into the constructor.