You are here

protected function HWLDFWordAccumulator::_flushLine in Service Container 7

Same name and namespace in other branches
  1. 7.2 lib/Drupal/Component/Diff/Engine/HWLDFWordAccumulator.php \Drupal\Component\Diff\Engine\HWLDFWordAccumulator::_flushLine()
2 calls to HWLDFWordAccumulator::_flushLine()
HWLDFWordAccumulator::addWords in lib/Drupal/Component/Diff/Engine/HWLDFWordAccumulator.php
HWLDFWordAccumulator::getLines in lib/Drupal/Component/Diff/Engine/HWLDFWordAccumulator.php

File

lib/Drupal/Component/Diff/Engine/HWLDFWordAccumulator.php, line 50
Contains \Drupal\Component\Diff\Engine\HWLDFWordAccumulator.

Class

HWLDFWordAccumulator
@todo document @private @subpackage DifferenceEngine

Namespace

Drupal\Component\Diff\Engine

Code

protected function _flushLine($new_tag) {
  $this
    ->_flushGroup($new_tag);
  if ($this->line != '') {
    array_push($this->lines, $this->line);
  }
  else {

    // make empty lines visible by inserting an NBSP
    array_push($this->lines, $this::NBSP);
  }
  $this->line = '';
}