I know word generates that when you type
---------------------------- (push enter key)
Go back to the line. On the toolbar, there is some button that allows you to enclose your text in a box, or underline or draw a line over it. You use that to get rid of the line by selecting the 'no lines' option.