diff --git a/src/ChatBlock.php b/src/ChatBlock.php index 2fa8cc9..8b8dbe9 100644 --- a/src/ChatBlock.php +++ b/src/ChatBlock.php @@ -311,7 +311,7 @@ private function _buildLinesFeed($rawData) { $linesArray = array_values(array_filter(explode(PHP_EOL,$rawData))); // string to array foreach($linesArray as $lineKey => $lineVal) { - if($lineVal != $this->SettingBreakPoint) + if(trim($lineVal) != $this->SettingBreakPoint) { $tempLine = []; $tempLine['_type'] = null; @@ -441,7 +441,7 @@ public function render(){ // } foreach($this->dialogue['lines'] as $dialogue) { - if($dialogue['_line'] != $this->SettingBreakPoint) + if(trim($dialogue['_line']) != $this->SettingBreakPoint) { switch($dialogue['_castname']) {