On p. 108, the isolated line of code intended to illustrate the normalize-space() function has a string argument that is already normalized, so the function output would be identical to the input. The paragraph at the top of the page gives an example of a string that would benefit from white-space normalization, but the argument to the illustrative line below that paragraph is the already-normalized version, and not the one with the extra spaces. That isn’t wrong, to be sure, but it doesn’t exemplify how the function can clean up messy whitespace.
On p. 108, the isolated line of code intended to illustrate the
normalize-space()function has a string argument that is already normalized, so the function output would be identical to the input. The paragraph at the top of the page gives an example of a string that would benefit from white-space normalization, but the argument to the illustrative line below that paragraph is the already-normalized version, and not the one with the extra spaces. That isn’t wrong, to be sure, but it doesn’t exemplify how the function can clean up messy whitespace.