formatString.Assign(NS_LITERAL_STRING("text/html"));
formatString.AssignLiteral("text/html");
static nsresult PrintEditorOutput(nsIEditor* editor, PRInt32 aCommandID){	nsString		outString;	char*			cString;	nsString		formatString;    PRUint32        flags = 0;		switch (aCommandID)	{      case VIEWER_DISPLAYTEXT:        formatString.Assign(NS_LITERAL_STRING("text/plain"));        flags = nsIDocumentEncoder::OutputFormatted;        editor->OutputToString(formatString, flags, outString);        break;              case VIEWER_DISPLAYHTML:        formatString.Assign(NS_LITERAL_STRING("text/html"));        editor->OutputToString(formatString, flags, outString);        break;	}	cString = ToNewCString(outString);	printf(cString);	delete [] cString;		return NS_OK;}