def is_inline(self): """ Test if current tag is inline-level (like <strong>, <img>) @return: bool """ return zen_resources.is_item_in_collection(self.source.syntax, 'inline_level', self.name)
def is_unary(self): """ Test if current tag is unary (no closing tag) @return: bool """ if self.type == 'snippet': return False return self.source.get_abbr() and self.source.get_abbr().value['is_empty'] \ or zen_resources.is_item_in_collection(self.source.syntax, 'empty', self.name)