Oops, use prettyprinting for OutputTextToStream as well as ToString.

git-svn-id: svn://10.0.0.236/trunk@36969 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
akkana%netscape.com 1999-06-26 00:59:12 +00:00
parent 9f8b661817
commit bfcfe864dc

View File

@ -1666,6 +1666,9 @@ NS_IMETHODIMP nsTextEditor::OutputTextToStream(nsIOutputStream* aOutputStream, n
return rv;
}
// Try to turn on pretty printing, but don't panic if it doesn't work:
(void)encoder->PrettyPrint(PR_TRUE);
return encoder->EncodeToStream(aOutputStream);
}