allow long tags to start on a new line

This commit is contained in:
Shish 2009-01-15 22:04:50 -08:00
parent fd38860c95
commit b9284b44d9

View File

@ -37,7 +37,7 @@ class ExtensionInfo { // {{{
else if(preg_match("/Author: (.*)/", $line, $matches)) {
$this->author = $matches[1];
}
if(preg_match("/(.*)Description: (.*)/", $line, $matches)) {
if(preg_match("/(.*)Description: ?(.*)/", $line, $matches)) {
$this->description = $matches[2];
$start = $matches[1]." ";
$start_len = strlen($start);
@ -46,7 +46,7 @@ class ExtensionInfo { // {{{
$i++;
}
}
if(preg_match("/(.*)Documentation: (.*)/", $line, $matches)) {
if(preg_match("/(.*)Documentation: ?(.*)/", $line, $matches)) {
$this->documentation = $matches[2];
$start = $matches[1]." ";
$start_len = strlen($start);