Index: trunk/extensions/DoubleWiki/DoubleWiki_body.php |
— | — | @@ -105,7 +105,6 @@ |
106 | 106 | return true; |
107 | 107 | } |
108 | 108 | |
109 | | - |
110 | 109 | /* |
111 | 110 | * Format the text as a two-column table with aligned paragraphs |
112 | 111 | */ |
— | — | @@ -190,8 +189,6 @@ |
191 | 190 | return $head . $body . "</table>" ; |
192 | 191 | } |
193 | 192 | |
194 | | - |
195 | | - |
196 | 193 | /* |
197 | 194 | * Split text and return a set of html-balanced paragraphs |
198 | 195 | */ |
— | — | @@ -221,7 +218,6 @@ |
222 | 219 | return $result; |
223 | 220 | } |
224 | 221 | |
225 | | - |
226 | 222 | /* |
227 | 223 | * Split text and return a set of html-balanced slices |
228 | 224 | */ |
— | — | @@ -253,7 +249,6 @@ |
254 | 250 | */ |
255 | 251 | $stack = array(); |
256 | 252 | for( $i=0 ; $i < $n ; $i++) { |
257 | | - $bits = preg_split( $this->tags, $left_slices[$i] ); |
258 | 253 | $m = array(); |
259 | 254 | preg_match_all( $this->tags, $left_slices[$i], $m, PREG_SET_ORDER); |
260 | 255 | $counter = 0; |
— | — | @@ -263,7 +258,7 @@ |
264 | 259 | $counter++; |
265 | 260 | array_push($stack, $t); |
266 | 261 | } else { |
267 | | - $tt = array_pop($stack); |
| 262 | + array_pop($stack); |
268 | 263 | $counter--; |
269 | 264 | } |
270 | 265 | } |
— | — | @@ -278,7 +273,7 @@ |
279 | 274 | } else if( $i == $n - 1 ) { |
280 | 275 | $left_slices[$i] = $opening . $left_slices[$i]; |
281 | 276 | } else if( $counter != 0 ) { |
282 | | - $left_slices[$i+1] = $left_slices[$i] . $left_slices[$i+1]; |
| 277 | + $left_slices[$i + 1] = $left_slices[$i] . $left_slices[$i+1]; |
283 | 278 | $left_slices[$i] = ''; |
284 | 279 | } |
285 | 280 | } |