function HWLDFWordAccumulator::_flushLine

Same name in other branches
  1. 9 core/lib/Drupal/Component/Diff/Engine/HWLDFWordAccumulator.php \Drupal\Component\Diff\Engine\HWLDFWordAccumulator::_flushLine()
  2. 8.9.x core/lib/Drupal/Component/Diff/Engine/HWLDFWordAccumulator.php \Drupal\Component\Diff\Engine\HWLDFWordAccumulator::_flushLine()
  3. 10 core/lib/Drupal/Component/Diff/Engine/HWLDFWordAccumulator.php \Drupal\Component\Diff\Engine\HWLDFWordAccumulator::_flushLine()
2 calls to HWLDFWordAccumulator::_flushLine()
HWLDFWordAccumulator::addWords in core/lib/Drupal/Component/Diff/Engine/HWLDFWordAccumulator.php
HWLDFWordAccumulator::getLines in core/lib/Drupal/Component/Diff/Engine/HWLDFWordAccumulator.php

File

core/lib/Drupal/Component/Diff/Engine/HWLDFWordAccumulator.php, line 42

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.