X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fdiff%2FWordAccumulator.php;h=aefcfb709445f1d13a6343c55bedfa97915d1e42;hb=06817f758c18cf90e4d67e12a7373bde20a65e91;hp=ad802756efc7e12418ab45ffe29a53eebbfd0a7f;hpb=2ffff73a46c29cdad1cbf59063f4dd75debd3b4c;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/diff/WordAccumulator.php b/includes/diff/WordAccumulator.php index ad802756ef..aefcfb7094 100644 --- a/includes/diff/WordAccumulator.php +++ b/includes/diff/WordAccumulator.php @@ -66,7 +66,7 @@ class WordAccumulator { array_push( $this->lines, $this->line ); } else { # make empty lines visible by inserting an NBSP - array_push( $this->lines, ' ' ); + array_push( $this->lines, "\u{00A0}" ); } $this->line = ''; } @@ -89,6 +89,8 @@ class WordAccumulator { $this->flushLine( $tag ); $word = substr( $word, 1 ); } + // FIXME: Don't use assert() + // phpcs:ignore MediaWiki.Usage.ForbiddenFunctions.assert assert( !strstr( $word, "\n" ) ); $this->group .= $word; }