|
@@ 717-719 (lines=3) @@
|
| 714 |
|
{ |
| 715 |
|
$inclued= (new static($this->htsl,$this->buffer->goSide($line->pregGet('/(?<=\( ).*(?= \))/')),$this))->execute()->content; |
| 716 |
|
|
| 717 |
|
if( false!==$this->indentation ){ |
| 718 |
|
$inclued= preg_replace('/(?<=^|\\n)(?!$)/',str_repeat($this->indentation,$this->level-$this->sectionLevel),$inclued); |
| 719 |
|
} |
| 720 |
|
|
| 721 |
|
$node= new StringNode($this,$line); |
| 722 |
|
|
|
@@ 770-772 (lines=3) @@
|
| 767 |
|
} |
| 768 |
|
$content= $this->sections[$sectionName]->content; |
| 769 |
|
|
| 770 |
|
if( false!==$this->indentation ){ |
| 771 |
|
$content= preg_replace('/(?<=^|\\n)(?!$)/',str_repeat($this->indentation,$this->level),$content); |
| 772 |
|
} |
| 773 |
|
|
| 774 |
|
$this->append($content); |
| 775 |
|
|
|
@@ 973-975 (lines=3) @@
|
| 970 |
|
*/ |
| 971 |
|
protected function appendLine( string$content ):self |
| 972 |
|
{ |
| 973 |
|
if( false!==$this->indentation ){ |
| 974 |
|
$content= str_repeat($this->indentation,$this->level-$this->sectionLevel).$content."\n"; |
| 975 |
|
} |
| 976 |
|
|
| 977 |
|
return $this->append($content); |
| 978 |
|
} |