HWLDFWordAccumulator::_flushLine

protected HWLDFWordAccumulator::_flushLine($new_tag)

File

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

Class

HWLDFWordAccumulator
@todo document @private @subpackage DifferenceEngine

Namespace

Drupal\Component\Diff\Engine

Code

1
2
3
4
5
6
7
8
9
10
11
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 = '';
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.