Browse Source

Missing single <p> for valid html

pull/686/head
danpros 1 year ago
parent
commit
034c541550
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      system/includes/functions.php

+ 1
- 1
system/includes/functions.php View File

@ -3638,7 +3638,7 @@ function automatic_toc($content, $id)
if (is_null($pos) || $pos > count($exp)){ if (is_null($pos) || $pos > count($exp)){
return $content; return $content;
} }
array_splice($exp, $pos, 0, insert_toc($id));
array_splice($exp, $pos, 0, insert_toc($id) . '<p>');
$content = implode('</p>', $exp); $content = implode('</p>', $exp);
return $content; return $content;
} }

Loading…
Cancel
Save