@@ -338,23 +338,23 @@ public function test_normalize_special_leading_newline_handling( string $input,
338338
339339 public static function data_provider_normalize_special_leading_newline_cases () {
340340 return array (
341- 'Leading newline in PRE ' => array (
341+ 'Leading newline in PRE ' => array (
342342 "<pre> \nline 1 \nline 2</pre> " ,
343343 "<pre>line 1 \nline 2</pre> " ,
344344 ),
345- 'Double leading newline in PRE ' => array (
345+ 'Double leading newline in PRE ' => array (
346346 "<pre> \n\nline 2 \nline 3</pre> " ,
347347 "<pre> \n\nline 2 \nline 3</pre> " ,
348348 ),
349- 'Multiple text nodes inside PRE ' => array (
349+ 'Multiple text nodes inside PRE ' => array (
350350 "<pre> \nline 1<!--comment--> still line 1</pre> " ,
351- " <pre>line 1<!--comment--> still line 1</pre> " ,
351+ ' <pre>line 1<!--comment--> still line 1</pre> ' ,
352352 ),
353353 'Multiple text nodes inside PRE with leading newlines ' => array (
354354 "<pre> \n\nline 2<!--comment--> still line 2</pre> " ,
355355 "<pre> \n\nline 2<!--comment--> still line 2</pre> " ,
356356 ),
357- 'Leading newline in TEXTAREA ' => array (
357+ 'Leading newline in TEXTAREA ' => array (
358358 "<textarea> \nline 1 \nline 2</textarea> " ,
359359 "<textarea>line 1 \nline 2</textarea> " ,
360360 ),
@@ -369,7 +369,7 @@ public static function data_provider_normalize_special_leading_newline_cases() {
369369 * @ticket TBD
370370 */
371371 public function test_serialize_special_pre_leading_newline_handling () {
372- $ processor = WP_HTML_Processor::create_fragment ( "<pre> \n\nx</pre> " );
372+ $ processor = WP_HTML_Processor::create_fragment ( "<pre> \n\nx</pre> " );
373373 $ text_content = '' ;
374374 while ( $ processor ->next_token () ) {
375375 if ( '#text ' === $ processor ->get_token_type () ) {
@@ -384,7 +384,7 @@ public function test_serialize_special_pre_leading_newline_handling() {
384384 */
385385 public function test_serialize_special_textarea_leading_newline_handling () {
386386 $ normalized = WP_HTML_Processor::normalize ( "<textarea> \n\nx</textarea> " );
387- $ processor = WP_HTML_Processor::create_fragment ( $ normalized );
387+ $ processor = WP_HTML_Processor::create_fragment ( $ normalized );
388388 $ processor ->next_token ();
389389 $ text_content = $ processor ->get_modifiable_text ();
390390 $ this ->assertSame ( "\nx " , $ text_content );
0 commit comments