mirror of
https://github.com/danpros/htmly.git
synced 2026-04-19 20:16:22 +05:30
Missing single <p> for valid html
This commit is contained in:
parent
849249302b
commit
034c541550
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue