@@ -14,16 +14,16 @@ fn escape_body_text_with_wbr() {
1414 assert_eq ! ( & E ( " " ) . to_string( ) , " " ) ;
1515 // real(istic) examples
1616 assert_eq ! ( & E ( "FirstSecond" ) . to_string( ) , "First<wbr>Second" ) ;
17- assert_eq ! ( & E ( "First_Second" ) . to_string( ) , "First <wbr>_Second " ) ;
17+ assert_eq ! ( & E ( "First_Second" ) . to_string( ) , "First_ <wbr>Second " ) ;
1818 assert_eq ! ( & E ( "First Second" ) . to_string( ) , "First Second" ) ;
1919 assert_eq ! ( & E ( "First HSecond" ) . to_string( ) , "First HSecond" ) ;
2020 assert_eq ! ( & E ( "First HTTPSecond" ) . to_string( ) , "First HTTP<wbr>Second" ) ;
2121 assert_eq ! ( & E ( "First SecondThird" ) . to_string( ) , "First Second<wbr>Third" ) ;
22- assert_eq ! ( & E ( "First<T>_Second" ) . to_string( ) , "First<<wbr>T><wbr>_Second " ) ;
23- assert_eq ! ( & E ( "first_second" ) . to_string( ) , "first <wbr>_second " ) ;
22+ assert_eq ! ( & E ( "First<T>_Second" ) . to_string( ) , "First<<wbr>T>_ <wbr>Second " ) ;
23+ assert_eq ! ( & E ( "first_second" ) . to_string( ) , "first_ <wbr>second " ) ;
2424 assert_eq ! ( & E ( "first:second" ) . to_string( ) , "first:<wbr>second" ) ;
2525 assert_eq ! ( & E ( "first::second" ) . to_string( ) , "first::<wbr>second" ) ;
26- assert_eq ! ( & E ( "MY_CONSTANT" ) . to_string( ) , "MY <wbr>_CONSTANT " ) ;
26+ assert_eq ! ( & E ( "MY_CONSTANT" ) . to_string( ) , "MY_ <wbr>CONSTANT " ) ;
2727 // a string won't get wrapped if it's less than 8 bytes
2828 assert_eq ! ( & E ( "HashSet" ) . to_string( ) , "HashSet" ) ;
2929 // an individual word won't get wrapped if it's less than 4 bytes
0 commit comments