/**
* Write a <code>Phrase</code>.
*
* @param phrase The <code>Phrase</code> item to be written
* @param outp The <code>MemoryStream</code> to write to
*
* @throws IOException
*/
private void WritePhrase(Phrase phrase, MemoryStream outp)
{
outp.WriteByte(escape);
outp.Write(paragraphDefaults, 0, paragraphDefaults.Length);
if (inTable) {
outp.WriteByte(escape);
outp.Write(RtfCell.cellInTable, 0, RtfCell.cellInTable.Length);
}
foreach (Chunk ch in phrase.Chunks) {
ch.Font = phrase.Font.Difference(ch.Font);
}
MemoryStream save = content;
content = outp;
phrase.Process(this);
content = save;
}