17 $par->armor[
'MakeWellFormed_TagClosedError'] =
true;
25 if (empty($this->currentNesting) || strpos($text,
"\n\n") !==
false) {
45 $token = array($this->
_pStart());
61 $token = array($this->
_pStart(), $token);
72 !empty($this->currentNesting) &&
73 $this->currentNesting[count($this->currentNesting)-1]->name ==
'p'
96 if (!empty($this->currentNesting)) {
111 substr($prev->data, -2) ===
"\n\n"
117 $token = array($this->
_pStart(), $token);
137 $token = array($this->
_pStart(), $token);
156 $token = array($this->
_pStart(), $token);
173 if (!is_array($token)) $token = array($token);
174 array_unshift($token,
new HTMLPurifier_Token_Text(
"\n\n"));
207 $raw_paragraphs = explode(
"\n\n",
$data);
208 $paragraphs = array();
209 $needs_start =
false;
212 $c = count($raw_paragraphs);
219 for ($i = 0; $i < $c; $i++) {
220 $par = $raw_paragraphs[$i];
221 if (trim($par) !==
'') {
222 $paragraphs[] = $par;
226 if (empty($result)) {
245 } elseif ($i + 1 == $c) {
255 if (empty($paragraphs)) {
265 foreach ($paragraphs as $par) {
291 return isset($this->htmlDefinition->info[
'p']->child->elements[$token->name]);
305 if ($result !== null) {
326 if (strpos($current->data,
"\n\n") !==
false) {