1.20.x diff.inc private HWLDFWordAccumulator::flushGroup($new_tag)

Parameters

$new_tag:

File

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

Class

HWLDFWordAccumulator
@private

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;
}