def assembleFormattedText(formatted):
 return _textattributes.flatten(formatted, _FormattingState(), 'toMIRCControlCodes')

def assembleFormattedText ( formatted ) : return _textattributes . flatten ( formatted , _FormattingState ( ) , 'toMIRCControlCodes' )
assemble formatted text from structured information .