6.0.0-beta1
9/24/25

[#5882] last line duplicated when reST document ends with a paragraph
Summary last line duplicated when reST document ends with a paragraph
Queue Horde Framework Packages
Queue Version HEAD
Type Bug
State Resolved
Priority 2. Medium
Owners chuck (at) horde (dot) org
Requester lsmith (at) php (dot) net
Created 11/12/2007 (6526 days ago)
Due
Updated 11/15/2007 (6523 days ago)
Assigned 11/14/2007 (6524 days ago)
Resolved 11/15/2007 (6523 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
11/15/2007 07:23:13 PM Chuck Hagenbuch Comment #3
State ⇒ Resolved
Reply to this comment
11/14/2007 05:41:26 AM Chuck Hagenbuch Comment #2
State ⇒ Assigned
Assigned to Chuck Hagenbuch
Reply to this comment
I've got a fix for this locally, but it breaks 2 of the other tests. 
I'll keep looking at it tomorrow.
11/12/2007 12:16:40 PM lsmith (at) php (dot) net Comment #1
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ last line duplicated when reST document ends with a paragraph
Queue ⇒ Horde Framework Packages
State ⇒ Unconfirmed
Reply to this comment
Using latest CVS



require_once 'Text/reST.php';

require_once 'Text/reST/Formatter.php';



$string = "Will parse and render the following URL as html::



   abc 123";



$document = Text_reST::parse($string);



$formatter = Text_reST_Formatter::factory('html');

echo $formatter->format($document);



I get the following output:

<p>Will parse and render the following URL as html:</p><pre>abc 
123</pre><p>abc 123</p>

Saved Queries