p = new TemplateInspector('
');
}
public function generateBooleanRules(TemplateInspector $src)
{
$rules = [];
if ($src->allowsChild($this->p) && $src->isBlock() && !$this->p->closesParent($src))
$rules['createParagraphs'] = \true;
if ($src->closesParent($this->p))
$rules['breakParagraph'] = \true;
return $rules;
}
}