Esempio n. 1
0
 /**
  * Convert the given token to the output format.
  * @param MUNGER $munger The transformation context.
  * @param MUNGER_TOKEN $token The token that triggered the transformation.
  * @return string
  */
 public function transform($munger, $token)
 {
     if ($token->is_start_tag()) {
         $munger->inc_footnote_texts();
     }
     $info = $munger->current_text_footnote_info();
     return $this->_format_text($munger, $token, $info);
 }
 /**
  * Show ellipses after the text to indicate truncation.
  * @access private
  */
 protected function _truncate()
 {
     parent::_truncate();
     $this->_add_text_to_output('...');
 }
Esempio n. 3
0
 /**
  * Show ellipses after the text to indicate truncation.
  * The ellipses are shown before the tag stack is dumped to ensure deep nesting.
  * @access private
  */
 protected function _truncate()
 {
     $this->_add_text_to_output('...' . $this->_link());
     parent::_truncate();
 }