Lines Matching refs:line
46 $line=$lines[$i];
47 if (preg_match('/^ *======.*====== *$/',$line))
49 $line=preg_replace('/^ *======/','=',$line);
50 $line=preg_replace('/====== *$/','=',$line);
52 elseif (preg_match('/^ *=====.*===== *$/',$line))
54 $line=preg_replace('/^ *=====/','==',$line);
55 $line=preg_replace('/===== *$/','==',$line);
57 elseif (preg_match('/^ *====.*==== *$/',$line))
59 $line=preg_replace('/^ *====/','===',$line);
60 $line=preg_replace('/==== *$/','===',$line);
62 elseif (preg_match('/^ *===.*=== *$/',$line))
64 $line=preg_replace('/^ *===/','====',$line);
65 $line=preg_replace('/=== *$/','====',$line);
67 elseif (preg_match('/^ *==.*== *$/',$line))
69 $line=preg_replace('/^ *==/','=====',$line);
70 $line=preg_replace('/== *$/','=====',$line);
76 while (preg_match('/^( )+\*/',$line))
78 $line=preg_replace("/^ /","",$line);
83 $line="*".$line;
90 while (preg_match('/^( )+\-/',$line))
92 $line=preg_replace("/^ /","",$line);
94 $line=preg_replace("/^-/","#",$line);
99 $line="#".$line;
105 $line=preg_replace("/\/\//","''",$line);
109 $line=preg_replace("/\*\*/","'''",$line);
114 $line=preg_replace("/\\\\\\\\ /","<br />",$line);
118 if (preg_match("/^\|/",$line))
120 $line=preg_replace("/\| *$/","",$line);
121 $line=preg_replace("/\n/","",$line);
127 $cells[$row]=explode("|",preg_replace("/^\|/","",$line));
131 if ((!preg_match("/^\|/",$line)) && $in_table)
220 if (preg_match("/^\^/",$line))
224 $line=preg_replace("/^\^/","",$line);
225 $line=preg_replace("/\n/","",$line);
226 $line=preg_replace("/\^$/","",$line);
227 $headers=explode("^",$line);
230 if ($in_table) $line=""; // if this is in a table then the table's content will be stored in $headers and $cells
233 $output.=$line;