diff --git a/subsection-identifier.php b/subsection-identifier.php index 6f4fbde..f486b59 100644 --- a/subsection-identifier.php +++ b/subsection-identifier.php @@ -68,6 +68,14 @@ function parse() */ $prefixes = array(); + /* + * If the text is a string, turn it into an object. + */ + if (is_string($this->text)) + { + $this->text = (object) explode("\n\n", $this->text); + } + /* * Deal with each subsection, one at a time. */