| #160 | if($current_chunk !== ''){ |
| #161 | $content_chunks[] = $current_chunk; |
| #162 | $current_chunk = ''; |
| #163 | } |
| #164 | $content_chunks = array_merge($content_chunks, $this->_split_chapter_text($paragraph, 1200)); |
| #165 | continue; |
| #166 | } |
| #167 | $current_chunk .= ($current_chunk === '' ? '' : "\n\n") . $paragraph; |
| #168 | if(mb_strlen($current_chunk, 'UTF-8') >= 1200){ |
| #169 | $content_chunks[] = $current_chunk; |