Yep! I was looking at that and going: Why aren't those values in individual Columns? (not a good plan if the 'columns' needed vary widely. Should be for a few 'well defined' uses)
BUT
(I don't know how to write the code). Isn't most of what you want, what Convert from: TXT to: HTM or EPUB mostly does?
Paste raw text into the comments (Normal view tab) , then switch to the HTML tab, and that will be wrapped in HTML tags (maybe not all what you want)
Remember, sometimes it is way easier to break the task, int discrete processes. Make it HTMP. Parce it into 'fields'. Arrange (beautify) the fields
|