Example #1
0
File: Note.php Project: alipek/rtf
 function formatPlaintext($params = array())
 {
     $converter = new JoshRibakoff_Note_RTFToPlainText();
     if (isset($params['newline'])) {
         $converter->setNewline($params['newline']);
     }
     return $converter->convert($this->rtf_text);
 }
Example #2
0
 function testShouldTrimPrefixingWhitespace()
 {
     $converter = new JoshRibakoff_Note_RTFToPlainText();
     $output = $converter->convert(" test");
     $this->assertEquals("test", $output, 'should trim prefixing whitespace');
 }