parameters: (self, prop)
return_statement: return self._escape_subsitution_refs(desc)
docstring: Converts the description of the property to a more use-friendly one.
  
          Args:
            prop. The property to find the default value of.
  
          Returns:
            str: The string to add to the property table description section.
docstring_summary: Converts the description of the property to a more use-friendly one.
docstring_tokens: Converts the description of the property to a more use - friendly one .
function: def _create_property_description_string(self, prop):
          """
          Converts the description of the property to a more use-friendly one.
  
          Args:
            prop. The property to find the default value of.
  
          Returns:
            str: The string to add to the property table description section.
          """
          from mantid.api import IWorkspaceProperty
  
          desc = str(prop.documentation.replace("\n", " "))
  
          allowedValueString = str(prop.allowedValues)
          # 4 allows for ['']
          if len(allowedValueString) > 4 and not isinstance(prop, IWorkspaceProperty):
              ##make sure the last sentence ended with a full stop (or equivalent)
              if (not desc.rstrip().endswith(".")) and (not desc.rstrip().endswith("!")) and\
                      (not desc.rstrip().endswith("?")) and (len(desc.strip())>0):
                  desc += "."
              isFileExts = True
              for item in prop.allowedValues:
                  #check it does not look like a file extension
                  if (not item.startswith(".")) and (not item[-4:].startswith(".")):
                      isFileExts = False
                      break
  
              prefixString = " Allowed values: "
              if isFileExts:
                  prefixString = " Allowed extensions: "
              #put a space in between entries to allow the line to break
              allowedValueString = allowedValueString.replace("','","', '")
              desc += prefixString + allowedValueString
  
          return self._escape_subsitution_refs(desc)
function_tokens: def _create_property_description_string ( self , prop ) : from mantid . api import IWorkspaceProperty desc = str ( prop . documentation . replace ( "\n" , " " ) ) allowedValueString = str ( prop . allowedValues ) # 4 allows for [''] if len ( allowedValueString ) > 4 and not isinstance ( prop , IWorkspaceProperty ) : ##make sure the last sentence ended with a full stop (or equivalent) if ( not desc . rstrip ( ) . endswith ( "." ) ) and ( not desc . rstrip ( ) . endswith ( "!" ) ) and ( not desc . rstrip ( ) . endswith ( "?" ) ) and ( len ( desc . strip ( ) ) > 0 ) : desc += "." isFileExts = True for item in prop . allowedValues : #check it does not look like a file extension if ( not item . startswith ( "." ) ) and ( not item [ - 4 : ] . startswith ( "." ) ) : isFileExts = False break prefixString = " Allowed values: " if isFileExts : prefixString = " Allowed extensions: " #put a space in between entries to allow the line to break allowedValueString = allowedValueString . replace ( "','" , "', '" ) desc += prefixString + allowedValueString return self . _escape_subsitution_refs ( desc )