- Timestamp:
- 04/27/12 09:17:30 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/filemanager/tp/dompdf/include/text_frame_reflower.cls.php
r3019 r6057 363 363 // faster than doing a single-pass character by character scan. Heh, 364 364 // yes I took the time to bench it ;) 365 $words = array_flip(preg_split( "/[\s-]+/u",$str, -1, PREG_SPLIT_DELIM_CAPTURE));365 $words = array_flip(preg_split('/[\s-]+/u',$str, -1, PREG_SPLIT_DELIM_CAPTURE)); 366 366 array_walk($words, create_function('&$val,$str', 367 367 '$val = Font_Metrics::get_text_width($str, "'.$font.'", '.$size.', '.$spacing.');')); … … 371 371 372 372 case "pre": 373 $lines = array_flip(preg_split( "/\n/u", $str));373 $lines = array_flip(preg_split('/\n/u', $str)); 374 374 array_walk($lines, create_function('&$val,$str', 375 375 '$val = Font_Metrics::get_text_width($str, "'.$font.'", '.$size.', '.$spacing.');')); … … 398 398 case "pre-wrap": 399 399 // Find the longest word (i.e. minimum length) 400 $lines = array_flip(preg_split( "/\n/", $text));400 $lines = array_flip(preg_split('/\n/', $text)); 401 401 array_walk($lines, create_function('&$val,$str', 402 402 '$val = Font_Metrics::get_text_width($str, "'.$font.'", '.$size.', '.$spacing.');'));
Note: See TracChangeset
for help on using the changeset viewer.