Пример #1
0
 protected function identifySetext($Line, array $Block = null)
 {
     $Block = parent::identifySetext($Line, $Block);
     if (preg_match('/[ ]*' . $this->attributesPattern . '[ ]*$/', $Block['element']['text'], $matches, PREG_OFFSET_CAPTURE)) {
         $attributeString = $matches[1][0];
         $Block['element']['attributes'] = $this->parseAttributes($attributeString);
         $Block['element']['text'] = substr($Block['element']['text'], 0, $matches[0][1]);
     }
     return $Block;
 }