in reply to convert text to HTML Format Table.
This may not be helpful at all, but if you have any control over the format of your input file I would suggest you investigate using DocBook.