1 diff.inc private HWLDFWordAccumulator::flushGroup($new_tag)

Parameters

$new_tag:

File

core/includes/diff.inc, line 805
A PHP diff engine for phpwiki. (Taken from phpwiki-1.3.3)

Class

HWLDFWordAccumulator

Code

private function flushGroup($new_tag) {
  if ($this->group !== '') {
    if ($this->tag == 'ins') {
      $this->line .= '<ins class="diffchange diffchange-inline">' . htmlspecialchars($this->group) . '</ins>';
    }
    elseif ($this->tag == 'del') {
      $this->line .= '<del class="diffchange diffchange-inline">' . htmlspecialchars($this->group) . '</del>';
    }
    else {
      $this->line .= htmlspecialchars($this->group);
    }
  }
  $this->group = '';
  $this->tag = $new_tag;
}