@@ 1100-1112 (lines=13) @@ | ||
1097 | $marker_space = $matches[3]; |
|
1098 | $tailing_blank_line =& $matches[5]; |
|
1099 | ||
1100 | if ($leading_line || $tailing_blank_line || |
|
1101 | preg_match('/\n{2,}/', $item)) |
|
1102 | { |
|
1103 | # Replace marker with the appropriate whitespace indentation |
|
1104 | $item = $leading_space . str_repeat(' ', strlen($marker_space)) . $item; |
|
1105 | $item = $this->runBlockGamut($this->outdent($item)."\n"); |
|
1106 | } |
|
1107 | else { |
|
1108 | # Recursion for sub-lists: |
|
1109 | $item = $this->doLists($this->outdent($item)); |
|
1110 | $item = preg_replace('/\n+$/', '', $item); |
|
1111 | $item = $this->runSpanGamut($item); |
|
1112 | } |
|
1113 | ||
1114 | return "<li>" . $item . "</li>\n"; |
|
1115 | } |
@@ 864-873 (lines=10) @@ | ||
861 | $marker_space = $matches[2]; |
|
862 | $def = $matches[3]; |
|
863 | ||
864 | if ($leading_line || preg_match('/\n{2,}/', $def)) { |
|
865 | # Replace marker with the appropriate whitespace indentation |
|
866 | $def = str_repeat(' ', strlen($marker_space)) . $def; |
|
867 | $def = $this->runBlockGamut($this->outdent($def . "\n\n")); |
|
868 | $def = "\n". $def ."\n"; |
|
869 | } |
|
870 | else { |
|
871 | $def = rtrim($def); |
|
872 | $def = $this->runSpanGamut($this->outdent($def)); |
|
873 | } |
|
874 | ||
875 | return "\n<dd>" . $def . "</dd>\n"; |
|
876 | } |