fix ordered lists

This commit is contained in:
nobody 2020-10-15 18:00:23 -07:00
parent 82c2f6cf98
commit a5755872ea
2 changed files with 2 additions and 2 deletions

View file

@ -16,7 +16,7 @@ use Zotlabs\Daemon\Run;
* @brief This file defines some global constants and includes the central App class.
*/
define ( 'STD_VERSION', '20.10.14' );
define ( 'STD_VERSION', '20.10.15' );
define ( 'ZOT_REVISION', '6.0' );
define ( 'DB_UPDATE_VERSION', 1243 );

View file

@ -1309,7 +1309,7 @@ function bbcode($Text, $options = []) {
// order lists
$Text = preg_replace('#^\d+[\.] +(.*?)$#m','<ol><li>$1</li></ol>',$Text);
$Text = preg_replace('/\s*<\/(ol|ul)>\n<\1>\s*/',"",$Text);
$Text = preg_replace('/\s*<\/(ol|ul)>\n+<\1>\s*/',"\n",$Text);
// Convert new line chars to html <br> tags