@ensure_tag(['<STR_LIT:r>'])<EOL>def is_bold(r):
w_namespace = get_namespace(r, '<STR_LIT:w>')<EOL>rpr = r.find('<STR_LIT>' % w_namespace)<EOL>if rpr is None:<EOL><INDENT>return False<EOL><DEDENT>bold = rpr.find('<STR_LIT>' % w_namespace)<EOL>return style_is_false(bold)<EOL>
The function will return True if the r tag passed in is considered bold.