File tree Expand file tree Collapse file tree 4 files changed +5
-13
lines changed Expand file tree Collapse file tree 4 files changed +5
-13
lines changed Original file line number Diff line number Diff line change 37
37
'showHeader ' => true ,
38
38
// the frontend HTML could use CSS "white-space: pre;" to visualize consecutive whitespaces
39
39
// but if you want to visualize them in the backend with " ", you can set this to true
40
- 'spacesToNbsp ' => false ,
40
+ 'spacesToNbsp ' => true ,
41
41
// HTML renderer tab width (negative = do not convert into spaces)
42
- 'tabSize ' => 4 ,
42
+ 'tabSize ' => 8 ,
43
43
// this option is currently only for the Combined renderer.
44
44
// it determines whether a replace-type block should be merged or not
45
45
// depending on the content changed ratio, which values between 0 and 1.
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ Just a context separator. 1
7
7
M
8
8
N
9
9
Do you know in Japanese, "魚の缶詰" means fish can.
10
- Tab visualization test.
10
+ a Tab visualization test.
11
11
G
12
12
Say hello to my neighbors.
13
13
A
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ Just a context separator. 1
6
6
M
7
7
N
8
8
Do you know in Chinese, "金槍魚罐頭" means tuna can.
9
- Tab visualization test.
9
+ a Tab visualization test.
10
10
G
11
11
// remember to delete this line
12
12
Say hello to my neighbors.
Original file line number Diff line number Diff line change @@ -314,15 +314,7 @@ protected function htmlSafe(string $string): string
314
314
*/
315
315
protected function htmlFixSpaces (string $ string ): string
316
316
{
317
- return \preg_replace_callback (
318
- '/ {2,}/S ' , // only fix for more than 1 space
319
- function (array $ matches ): string {
320
- $ count = \strlen ($ matches [0 ]);
321
-
322
- return \str_repeat (' ' , $ count >> 1 ) . ($ count & 1 ? ' ' : '' );
323
- },
324
- $ string
325
- );
317
+ return \str_replace (' ' , ' ' , $ string );
326
318
}
327
319
328
320
/**
You can’t perform that action at this time.
0 commit comments