@@ 987-999 (lines=13) @@ | ||
984 | $marker_space = $matches[3]; |
|
985 | $tailing_blank_line =& $matches[5]; |
|
986 | ||
987 | if ($leading_line || $tailing_blank_line || |
|
988 | preg_match('/\n{2,}/', $item)) |
|
989 | { |
|
990 | # Replace marker with the appropriate whitespace indentation |
|
991 | $item = $leading_space . str_repeat(' ', strlen($marker_space)) . $item; |
|
992 | $item = $this->runBlockGamut($this->outdent($item)."\n"); |
|
993 | } |
|
994 | else { |
|
995 | # Recursion for sub-lists: |
|
996 | $item = $this->doLists($this->outdent($item)); |
|
997 | $item = preg_replace('/\n+$/', '', $item); |
|
998 | $item = $this->runSpanGamut($item); |
|
999 | } |
|
1000 | ||
1001 | return "<li>" . $item . "</li>\n"; |
|
1002 | } |
@@ 1263-1272 (lines=10) @@ | ||
1260 | $marker_space = $matches[2]; |
|
1261 | $def = $matches[3]; |
|
1262 | ||
1263 | if ($leading_line || preg_match('/\n{2,}/', $def)) { |
|
1264 | # Replace marker with the appropriate whitespace indentation |
|
1265 | $def = str_repeat(' ', strlen($marker_space)) . $def; |
|
1266 | $def = $this->runBlockGamut($this->outdent($def . "\n\n")); |
|
1267 | $def = "\n". $def ."\n"; |
|
1268 | } |
|
1269 | else { |
|
1270 | $def = rtrim($def); |
|
1271 | $def = $this->runSpanGamut($this->outdent($def)); |
|
1272 | } |
|
1273 | ||
1274 | return "\n<dd>" . $def . "</dd>\n"; |
|
1275 | } |