* fix a bug for svn and adjust burn.
This commit is contained in:
+13
-4
@@ -168,10 +168,7 @@ class devModel extends model
|
||||
$comment = preg_split('/\r?\n\r?/', $comment);
|
||||
|
||||
// Trim asterisks and whitespace from the beginning and whitespace from the end of lines.
|
||||
$comment = array_map(function($line)
|
||||
{
|
||||
return ltrim(rtrim($line), "* \t\n\r\0\x0B");
|
||||
}, $comment);
|
||||
$comment = array_map(array('devModel', "trimSpace"), $comment);
|
||||
|
||||
// Group the lines together by @tags
|
||||
$blocks = array();
|
||||
@@ -246,4 +243,16 @@ class devModel extends model
|
||||
}
|
||||
return $modules;
|
||||
}
|
||||
|
||||
/**
|
||||
* Trim asterisks and whitespace from the beginning and whitespace from the end of lines.
|
||||
*
|
||||
* @param string $line
|
||||
* @access public
|
||||
* @return string
|
||||
*/
|
||||
public function trimSpace($line)
|
||||
{
|
||||
return ltrim(rtrim($line), "* \t\n\r\0\x0B");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user