packages/ConsoleDiffer/src/MarkdownDifferAndFormatter.php
private function removeTrailingWhitespaces(string $diff): string
    {
        $diff = Strings::replace($diff, '#( ){1,}\n#', PHP_EOL);

        return rtrim($diff);
    }
private function removeTrailingWhitespaces(string $diff): string
    {
        $diff = Strings::replace($diff, '#( ){1,}\n#', PHP_EOL);

        return rtrim($diff);
    }
private function removeTrailingWhitespaces ( string $ diff ) : string { $ diff = Strings :: replace ( $ diff , '#( ){1,}\n#' , PHP_EOL ) ; return rtrim ( $ diff ) ; }
Removes UnifiedDiffOutputBuilder generated pre-spaces " \n" => "\n"
Removes UnifiedDiffOutputBuilder generated pre - spaces \ n = > \ n