protected function doEmptyLine() { if ($this->isInPoem()) { $this->closeStanzaIfAny(); } else { parent::doEmptyLine(); } }