protected function outputParagraphStart($maxPos)
	{
		// Do nothing if we're already in a paragraph, or if we don't use paragraphs
		if ($this->context['inParagraph']
		 || !($this->context['flags'] & self::RULE_CREATE_PARAGRAPHS))
		{
			return;
		}

		// Output the whitespace between $this->pos and $maxPos if applicable
		$this->outputWhitespace($maxPos);

		// Open the paragraph, but only if it's not at the very end of the text
		if ($this->pos < $this->textLen)
		{
			$this->output .= '<p>';
			$this->context['inParagraph'] = true;
		}
	}
protected function outputParagraphStart($maxPos)
	{
		// Do nothing if we're already in a paragraph, or if we don't use paragraphs
		if ($this->context['inParagraph']
		 || !($this->context['flags'] & self::RULE_CREATE_PARAGRAPHS))
		{
			return;
		}

		// Output the whitespace between $this->pos and $maxPos if applicable
		$this->outputWhitespace($maxPos);

		// Open the paragraph, but only if it's not at the very end of the text
		if ($this->pos < $this->textLen)
		{
			$this->output .= '<p>';
			$this->context['inParagraph'] = true;
		}
	}
protected function outputParagraphStart ( $ maxPos ) { // Do nothing if we're already in a paragraph, or if we don't use paragraphs if ( $ this -> context [ 'inParagraph' ] || ! ( $ this -> context [ 'flags' ] & self :: RULE_CREATE_PARAGRAPHS ) ) { return ; } // Output the whitespace between $this->pos and $maxPos if applicable $ this -> outputWhitespace ( $ maxPos ) ; // Open the paragraph, but only if it's not at the very end of the text if ( $ this -> pos < $ this -> textLen ) { $ this -> output .= '<p>' ; $ this -> context [ 'inParagraph' ] = true ; } }
Start a paragraph between current position and given position, if applicable

@param  integer $maxPos Rightmost position at which the paragraph can be opened
@return void
Start a paragraph between current position and given position if applicable