Permalink
Browse files

Added expansion of new lines in doc comments to HTML paragraph elemen…

…ts in standard doclet.
  • Loading branch information...
1 parent 47f01a1 commit 533315ba25a5362c5e9a08fab21b0813fed56f97 peejeh committed May 28, 2006
Showing with 7 additions and 5 deletions.
  1. +3 −1 HISTORY
  2. +4 −4 doclets/standard/htmlWriter.php
View
@@ -1,3 +1,5 @@
+Version 2.1
+ Added expansion of new lines in doc comments to HTML paragraph elements in standard doclet.
Version 2
Fixed ignore command so it actually works.
Fixed constructor case bug, PHP4 style constructors were not being recognised as such if the method name was a different case to the class name.
@@ -72,4 +74,4 @@ Version 1.1
Added verifying of link target and added @linkplain support
Added support for packages using the @package tag
Version 1
- Initial version
+ Initial version
@@ -18,13 +18,13 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-// $Id: htmlWriter.php,v 1.12 2005/06/28 20:25:51 peejeh Exp $
+// $Id: htmlWriter.php,v 1.13 2006/05/28 17:37:51 peejeh Exp $
/** This generates the index.html file used for presenting the frame-formated
* "cover page" of the API documentation.
*
* @package PHPDoctor.Doclets.Standard
- * @version $Revision: 1.12 $
+ * @version $Revision: 1.13 $
*/
class HTMLWriter
{
@@ -273,7 +273,7 @@ function _processTags(&$tags)
/** Convert inline tags into a string for outputting.
*
* @param Tag tag The text tag to process
- * @param bool first process first line of tag only
+ * @param bool first Process first line of tag only
* @return str The string representation of the elements doc tags
*/
function _processInlineTags(&$tag, $first = FALSE)
@@ -288,7 +288,7 @@ function _processInlineTags(&$tag, $first = FALSE)
if ($tags) {
foreach ($tags as $aTag) {
if ($aTag) {
- $description .= $aTag->text().' ';
+ $description .= '<p>'.str_replace("\n\n", '</p><p>', $aTag->text()).'</p>';
}
}
}

0 comments on commit 533315b

Please sign in to comment.