(text, parent)
return ATTR_RE.sub(attributeCallback, text)
Set values of an element based on attribute definitions ({@id=123}).
Set values of an element based on attribute definitions ({
Set values of an element based on attribute definitions ( {
def handleAttributes(text, parent):
    """Set values of an element based on attribute definitions ({@id=123})."""
    def attributeCallback(match):
        parent.set(match.group(1), match.group(2).replace('\n', ' '))
    return ATTR_RE.sub(attributeCallback, text)
def handleAttributes ( text , parent ) : def attributeCallback ( match ) : parent . set ( match . group ( 1 ) , match . group ( 2 ) . replace ( '\n' , ' ' ) ) return ATTR_RE . sub ( attributeCallback , text )