| 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 (6577 days ago) |
| Due | |
| Updated | 11/15/2007 (6574 days ago) |
| Assigned | 11/14/2007 (6575 days ago) |
| Resolved | 11/15/2007 (6574 days ago) |
| Github Issue Link | |
| Github Pull Request | |
| Milestone | |
| Patch | No |
State ⇒ Resolved
http://cvs.horde.org/diff.php/framework/Text_reST/reST/Parser.php?r1=1.20&r2=1.21&ty=u
State ⇒ Assigned
Assigned to Chuck Hagenbuch
I'll keep looking at it tomorrow.
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ last line duplicated when reST document ends with a paragraph
Queue ⇒ Horde Framework Packages
State ⇒ Unconfirmed
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>