Implement space_to_underscore conversion (wikitext, f340961)

Here's the actual conversion from spaces to underscores inside the link sanitization function. It only takes place if we're not in rollback mode and the space_to_underscore instance variable is true.

Not that when not in rollback mode both leading and trailing spaces are stripped so the change has no effect in those parts of the string.

Signed-off-by: Greg Hurrell <greg@hurrell.net>

← Revert "Implement space_to_underscore conversion" (wikitext, 6b5f819)
Invert sense of "trim" parameter in sanitization function (wikitext, e3b5ea0) →

All snippets