if (mOutFormat == nsMimeOutput::nsMimeMessageRaw)
if ((mOutFormat == nsMimeOutput::nsMimeMessageRaw) || (mOutFormat == nsMimeOutput::nsMimeMessageXULDisplay) )
NS_IMETHODIMP ConsoleOutputStreamListener::OnDataAvailable(nsIChannel * aChannel, 							 nsISupports    *ctxt,                              nsIInputStream *inStr,                              PRUint32       sourceOffset,                              PRUint32       count){  PRUint32 i=0;  PRUint32 aCount = 0;  char * aBuf = (char *) PR_Malloc(sizeof(char) * (count+1));  inStr->Read(aBuf, count, &aCount);  // If raw, don't postprocess...  if (mOutFormat == nsMimeOutput::nsMimeMessageRaw)  {    PR_Write(PR_GetSpecialFD(PR_StandardOutput), aBuf, aCount);    return NS_OK;  }  for (i=0; i<aCount; i++)  {    // First, check if we are in a new level of html...    if (aBuf[i] == '<')    {      if ( (i < aCount) && (aBuf[i+1] == '/') )      {        --mIndentCount;        mInClosingTag = PR_TRUE;      }      else      {        ++mIndentCount;        DoIndent();        mInClosingTag = PR_FALSE;      }      if (mIndentCount < 0)        mIndentCount = 0;    }    // Now, write the HTML character...    PR_Write(PR_GetSpecialFD(PR_StandardOutput), aBuf+i, 1);    if (aBuf[i] == '>')    {      // Now, write out the correct number or spaces for the indent count...      if (mInClosingTag)        DoIndent();    }  }  return NS_OK;}