Lines Matching refs:line

276     foreach($lines as $line) {
280 if($line == $openarea) { # close area
281 if(rtrim($line) != "%%%") # comment areas
285 $areacontent .= "$line\n";
289 if(preg_match('/^("""|```|\'\'\'|%%%) *$/', $line)) { # open area
290 $openarea = trim($line);
294 …if($line!='' && $line{0}=='%' && ! preg_match('/^%%(infile|outfile|date|mtime|rand|toc\\s*$)/i', $
298 if(preg_match('/^("""|```|\'\'\') /', $line, $m)) {
299 $lines2[] = $this->closeRTV($m[1], substr($line, 4));
304 …preg_match('/^ *((=){1,5})(?!=)\\s*(\\S.*[^=]|[^\\s=])\\1(?:\\[([\\w-]+)\\])?\\s*$/', $line, $m) ||
305 …atch('/^ *((\\+){1,5})(?!\\+)\\s*(\\S.*[^+]|[^\\s=])\\1(?:\\[([\\w-]+)\\])?\\s*$/', $line, $m) ) {
332 if(preg_match('/^ *(\\|\\|?) /', $line, $m)) {
334 $attr = ($line{0}==' ')? ' align="center"' : "";
335 if(preg_match('/\\|\\s*$/', $line)) {
345 $line = $this->run_inline($line);
347 $row = substr($line, strlen($m[0]));
371 if(preg_match('/^ *(=|-|_){20,}\\s*$/', $line, $m)) {
376 … if(preg_match("/^ +\\[([\034\\w_,.+%$#@!?+~\\/-]+\\.(?:png|jpe?g|gif|bmp|svg))\\] +$/i", $line)) {
377 $lines2[] = "\033\033". $this->Keep(sprintf($snippets['center'], $this->run_inline($line)));
381 if(trim(strtolower($line))=='%%toc') {
383 $line = '%%toc';
385 $lines2[] = $line;
433 foreach($lines as $line) {
436 if(preg_match('/^(\\t+)([^\\t].*)$/', $line, $m)) {
452 if(preg_match('/^( *)([+-]) (\\S.*)$/', $line, $m) ||
453 preg_match( '/^( *)(:) ( *\\S.*)$/', $line, $m)) {
502 if(trim($line)=='' || strpos($line, "\032\032")===0 ) {
504 if(!$openlist || strpos($line, "\032\032")===0) { # second empty line, close ALL
511 $lines2[] = $line;
522 if(preg_match('/^(( *)([+-:])) *$/', $line, $m) && $m[1]== "$pspaces$ptype") { # close
537 $listcontent .= $this->sp($plevel+1).$this->run_inline($line)."\n";
543 if(preg_match("/^[\032\033]{2}/", $line)) {
548 $lines2[] = $line;
553 if(trim($line)=='') {
558 $lines2[] = $this->run_inline($line);
563 if(trim($line)!='') {
565 $lines2[] = $this->run_inline($line);
570 $lines2[] = $line;
591 function run_inline($line) { # inline transformations (links, images, bold, mono...) argument
594 if(preg_match_all('/(\'|"|`){2}([^\\s](.*?[^\\s])?\\1*)\\1\\1/', $line, $m, PREG_SET_ORDER)) {
599 $line = preg_replace('/(\'|"|`){2}([^\\s](.*?[^\\s])?\\1*)\\1\\1/', $tmp, $line, 1);
603 $line = $this->run_macros($line);
608 $line = preg_replace("/^$imgrx(?=.)/ei",
609 "\$this->Keep(sprintf(\$snippets['img'], 'left', '$1'))", $line);
610 $line = preg_replace("/(?<=.)$imgrx$/ei",
611 "\$this->Keep(sprintf(\$snippets['img'], 'right', '$1'))", $line);
614 $line = preg_replace("/$imgrx/ei",
615 "\$this->Keep(sprintf(\$snippets['img'], 'middle', '$1', 'middle'))", $line);