function testShouldTrimBlankLinesFromPlaintextOutput() { $startNote = '{\\rtf1\\ansi\\ansicpg1251\\deff0\\deflang1049{\\fonttbl{\\f0\\fnil\\fcharset0 Microsoft Sans Serif;}{\\f1\\fnil\\fcharset204 Microsoft Sans Serif;}} \\uc1\\pard\\f0\\fs17 test \\cf2\\b0\\par \\uc1\\pard\\f0\\fs17 test2 }'; $note = new JoshRibakoff_Note(); $note->setRTF($startNote); $this->assertEquals("test\ntest2", $note->formatPlaintext(), 'should not have blank lines in plaintext output'); }