parameters: (self, text)
return_statement: return tmp
docstring: Transforms the given text by converting it to RTF format
          @param text: text to transform
          @return: text with all special characters transformed
docstring_summary: Transforms the given text by converting it to RTF format
docstring_tokens: Transforms the given text by converting it to RTF format
function: def TransformText(self, text):
          """Transforms the given text by converting it to RTF format
          @param text: text to transform
          @return: text with all special characters transformed
          """
          chmap = { "\t" : "\\tab ", "{" : "\\{", "}" : "\\}",
                    "\\" : "\\\\", "\n" : "\\par\n", "\r" : "\\par\n"}
          text = text.replace('\r\n', '\n')
          tmp = u''
          for char in text:
              tmp = tmp + chmap.get(char, char)
          return tmp
function_tokens: def TransformText ( self , text ) : chmap = { "\t" : "\\tab " , "{" : "\\{" , "}" : "\\}" , "\\" : "\\\\" , "\n" : "\\par\n" , "\r" : "\\par\n" } text = text . replace ( '\r\n' , '\n' ) tmp = u'' for char in text : tmp = tmp + chmap . get ( char , char ) return tmp