Convert Prism/Helper#splitIntoLines into a generator
authorTim Düsterhus <duesterhus@woltlab.com>
Tue, 5 Jan 2021 14:20:27 +0000 (15:20 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Tue, 5 Jan 2021 15:56:38 +0000 (16:56 +0100)
commit5e55d6e4b24e80bd275e3a283fdd5e999f4a2638
tree6dc7b876ab793f9babc5df33d0e4bfa670cf8c64
parentf18e42f6b7ab3d2d3127c5f91dddc3334a964cd4
Convert Prism/Helper#splitIntoLines into a generator

This allow for a much cleaner control flow and also reduces the number of
useless intermediate objects (e.g. the DocumentFragment).
wcfsetup/install/files/js/WoltLabSuite/Core/Bbcode/Code.js
wcfsetup/install/files/js/WoltLabSuite/Core/Prism/Helper.js
wcfsetup/install/files/ts/WoltLabSuite/Core/Bbcode/Code.ts
wcfsetup/install/files/ts/WoltLabSuite/Core/Prism/Helper.ts