Index: trunk/extensions/Poem/Poem.php |
— | — | @@ -46,13 +46,13 @@ |
47 | 47 | $tag = $parser->insertStripItem( "<br />", $parser->mStripState ); |
48 | 48 | $text = preg_replace( |
49 | 49 | array( "/^\n/", "/\n$/D", "/\n/", "/^( +)/me" ), |
50 | | - array( "", "", "$tag$nl", "str_replace(' ',' ','\\1')" ), |
| 50 | + array( "", "", "$tag\n", "str_replace(' ',' ','\\1')" ), |
51 | 51 | $in ); |
52 | 52 | $text = $parser->recursiveTagParse( $text ); |
53 | 53 | } else { |
54 | 54 | $text = preg_replace( |
55 | 55 | array( "/^\n/", "/\n$/D", "/\n/", "/^( +)/me" ), |
56 | | - array( "", "", "<br />$nl", "str_replace(' ',' ','\\1')" ), |
| 56 | + array( "", "", "<br />\n", "str_replace(' ',' ','\\1')" ), |
57 | 57 | $in ); |
58 | 58 | $ret = $parser->parse( |
59 | 59 | $text, |
Index: trunk/extensions/Poem/poemParserTests.txt |
— | — | @@ -113,6 +113,7 @@ |
114 | 114 | is<br /> |
115 | 115 | a<br /> |
116 | 116 | test<br /> |
| 117 | + |
117 | 118 | </p> |
118 | 119 | </div> |
119 | 120 | |
— | — | @@ -134,6 +135,7 @@ |
135 | 136 | '''is'''<br /> |
136 | 137 | a<br /> |
137 | 138 | test<br /> |
| 139 | + |
138 | 140 | </p> |
139 | 141 | </div> |
140 | 142 | |