If you use Notepad++ to look at your text, and select Ada under languages, it becomes significantly easier to look at that text.
..not that I know what to do with it, but it gets easier.
Do you have a program / databse /spreadsheet to generate store lists, or just that script?
Viewing post in Arcane Spell Scrolls for store import
This script does clean up on items from this online database: http://www.dnd5eapi.co/
I don't have a random generator. The app itself has the means to import/export a JSON test list of a store.