Exemple #1
0
 private void Para_stack_end(int cur_pos) { // MW: $output .= $paragraphStack;
   switch (para_stack) {
     case Para_stack_none:
       break;
     case Para_stack_bgn:
       prv_para.Para_end_(Xop_para_tkn.Tid_none).Para_bgn_(Xop_para_tkn.Tid_para);
       break; // '<p>'
     case Para_stack_mid:
       prv_para.Para_end_(Xop_para_tkn.Tid_para).Para_bgn_(Xop_para_tkn.Tid_para);
       break; // '</p><p>'
   }
 }
Exemple #2
0
 private void Prv_para_end() { // MW: closeParagraph();
   // following switch is equivalent to:
   // MW: if ( $this->mLastSection != '' )
   // MW: 		$result = '</' . $this->mLastSection . ">\n";
   switch (cur_mode) {
     case Mode_none:
       return;
     case Mode_pre:
       prv_para.Para_end_(Xop_para_tkn.Tid_pre);
       break;
     case Mode_para:
       prv_para.Para_end_(Xop_para_tkn.Tid_para);
       break;
   }
   // in_pre = false;		// MW: $this->mInPre = false;
   cur_mode = Mode_none; // MW: $this->mLastSection = '';
 }