continue;
}
- if ($property)
- {
- if (preg_match('#^__*_$#', trim($line)))
- {
- $viewsvn->debug("skipping: $line");
- continue;
- }
-
- if (preg_match('#Name: (.*?)$#', $line, $matches))
- {
- $curprop = $matches[1];
- $viewsvn->debug("prop: $curprop");
- continue;
- }
- else
- {
- if (preg_match('#^\s+?\+(.*)#', $line, $matches))
- {
- $this->diff["$index"]['props']["$curprop"] .= $matches[1];
- }
- else if (!preg_match('#^\s+[\+\- ](.*)#', $line) AND trim($line) != '')
- {
- $this->diff["$index"]['props']["$curprop"] .= "\n" . $line;
- }
- continue;
- }
- }
-
if ($indexcounter <= 3 AND $indexcounter !== null)
{
$indexcounter++;
continue;
}
- if (preg_match('#^([\+\- ])(.*)#', $line, $matches))
+ if (preg_match('#^([\+\- ])(.*)#', $line, $matches) AND !$property)
{
$act = $matches[1];
$content = $matches[2];
continue;
}
+ if ($property)
+ {
+ if (preg_match('#^__*_$#', trim($line)))
+ {
+ $viewsvn->debug("skipping: $line");
+ continue;
+ }
+
+ if (preg_match('#Name: (.*?)$#', $line, $matches))
+ {
+ $curprop = $matches[1];
+ $viewsvn->debug("prop: $curprop");
+ continue;
+ }
+ else
+ {
+ if (preg_match('#^\s+?\+(.*)#', $line, $matches))
+ {
+ $this->diff["$index"]['props']["$curprop"] .= $matches[1];
+ }
+ else if (!preg_match('#^\s+[\+\- ](.*)#', $line) AND trim($line) != '')
+ {
+ $this->diff["$index"]['props']["$curprop"] .= "\n" . $line;
+ }
+ continue;
+ }
+ }
+
$this->diff["$index"]["$chunk"][] = array(
'line' => '',
'act' => '',