The regex version will collapse any br that is immediately followed by a \n, a \r, or both, into just a single newline. That fixes display of old cast lists and such on our catalog pages. Added a few more test cases to address this, and possible capitalization differences.
Then we use the helper on Archive uploads, so both are consistent. Also add an extra space before and after the item description, as these are manually added by MCs right now.
Oh, right: per discussion in #188, I've tested this pretty thoroughly on my dev machine, including by archiving some dummy projects. I think this one is safe to go live, if you see no issues with it.
Got admin consensus for this one: :+1:
The regex version will collapse any br that is immediately followed by a \n, a \r, or both, into just a single newline. That fixes display of old cast lists and such on our catalog pages. Added a few more test cases to address this, and possible capitalization differences.
Then we use the helper on Archive uploads, so both are consistent. Also add an extra space before and after the item description, as these are manually added by MCs right now.