Fixes#19.
When using PNG Info Send to txt2img/img2img, it will re-create the
entire tab for that workflow. This means that Textbox gets re-created.
On creation, the Textbox is added to the prompts to format, which makes
the old ones stale. Since there's excess, it also results in an uncaught
error.
Solution is to use a set instead of a list to hold the Textbox's to
format. I speculate the components have an internal check to ensure
they don't overlap, perhaps by checking `elem_id` or something.
Regardless, fixed.
Add Option to preserve Underscores and spaces
Allow the option to NOT convert either underscores or spaces, so that danbooru tags are preserved, while maintaining normal spacing.
By default, automatically converts underscores to spaces, with the opposite as an option under settings.
Brackets to weight can be disabled.
Commas will now have spaces after them, with an option to disallow it in settings.
More or less a compete rewrite from a proof of concept to something more consistnt and stable. Now takes into account things like prompt editing, alternating words, and composable diffusion. In the mean time, however, it no longer separates weighted terms. Until I can figure out how to deal with infinitely nested weights and other weird combinations (recursion stuff), it's on hold.
The separation of isolated weights will come later as a togglable option, perhaps with other settings.