@ensure_tag(['<STR_LIT:r>'])<EOL>def get_text_run_content_data(r):
w_namespace = get_namespace(r, '<STR_LIT:w>')<EOL>valid_elements = (<EOL>'<STR_LIT>' % w_namespace,<EOL>'<STR_LIT>' % w_namespace,<EOL>'<STR_LIT>' % w_namespace,<EOL>'<STR_LIT>' % w_namespace,<EOL>)<EOL>for el in r:<EOL><INDENT>if el.tag in valid_elements:<EOL><INDENT>yield el<EOL><DEDENT><DEDENT>
It turns out that r tags can contain both t tags and drawing tags. Since we
need both, this function will return them in the order in which they are
found.