Make the `normalizeWhitespace` handling, in the `PartialEvaluator`, more efficient (PR 14428 follow-up)
Make the `normalizeWhitespace` handling, in the `PartialEvaluator`, more efficient (PR 14428 follow-up)

After the changes in PR 14428 we can *directly*, and more efficiently, handle whitespace conversion in `PartialEvaluator.getTextContent` when the `normalizeWhitespace` option is being used.
This way we no longer need a separate helper function for this, and can avoid having to (again) iterate through the text and checking each character. Finally, this also removes the need for using a regular expression on e.g. all non-ASCII text.

macroplant/pdf.js,Shoobx/pdf.js,nawawi/pdf.js,Shoobx/pdf.js,showpad/mozilla-pdf.js,timvandermeij/pdf.js,Snuffleupagus/pdf.js,Snuffleupagus/pdf.js,mozilla/pdf.js,macroplant/pdf.js,Snuffleupagus/pdf.js,showpad/mozilla-pdf.js,macroplant/pdf.js,showpad/mozilla-pdf.js,Shoobx/pdf.js,nawawi/pdf.js,mozilla/pdf.js,mozilla/pdf.js,timvandermeij/pdf.js,timvandermeij/pdf.js,nawawi/pdf.js