示例#1
0
文件: Note.php 项目: 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);
 }
示例#2
0
 function testShouldTrimPrefixingWhitespace()
 {
     $converter = new JoshRibakoff_Note_RTFToPlainText();
     $output = $converter->convert(" test");
     $this->assertEquals("test", $output, 'should trim prefixing whitespace');
 }