parameters: (self, curr_iter)
return_statement: return False
docstring: Check for tag rich text toggle on or off
docstring_summary: Check for tag rich text toggle on or off
docstring_tokens: Check for tag rich text toggle on or off
function: def tag_richtext_toggling_on_or_off(self, curr_iter):
          """Check for tag rich text toggle on or off"""
          toggled_onoff = []
          toggled_off = curr_iter.get_toggled_tags(toggled_on=False)
          toggled_on = curr_iter.get_toggled_tags(toggled_on=True)
          if toggled_off: toggled_onoff.extend(toggled_off)
          if toggled_on: toggled_onoff.extend(toggled_on)
          for tag in toggled_onoff:
              tag_name = tag.get_property("name")
              if not tag_name: continue
              if tag_name.startswith("weight_") \
              or tag_name.startswith("foreground_") \
              or tag_name.startswith("background_") \
              or tag_name.startswith("style_") \
              or tag_name.startswith("underline_") \
              or tag_name.startswith("strikethrough_") \
              or tag_name.startswith("scale_") \
              or tag_name.startswith("justification_") \
              or tag_name.startswith("link_") \
              or tag_name.startswith("family_"):
                  return True
          return False
function_tokens: def tag_richtext_toggling_on_or_off ( self , curr_iter ) : toggled_onoff = [ ] toggled_off = curr_iter . get_toggled_tags ( toggled_on = False ) toggled_on = curr_iter . get_toggled_tags ( toggled_on = True ) if toggled_off : toggled_onoff . extend ( toggled_off ) if toggled_on : toggled_onoff . extend ( toggled_on ) for tag in toggled_onoff : tag_name = tag . get_property ( "name" ) if not tag_name : continue if tag_name . startswith ( "weight_" ) or tag_name . startswith ( "foreground_" ) or tag_name . startswith ( "background_" ) or tag_name . startswith ( "style_" ) or tag_name . startswith ( "underline_" ) or tag_name . startswith ( "strikethrough_" ) or tag_name . startswith ( "scale_" ) or tag_name . startswith ( "justification_" ) or tag_name . startswith ( "link_" ) or tag_name . startswith ( "family_" ) : return True return False