process new line symbol in TextBoxWidget

This should fix #434.