mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-19 23:55:19 +00:00
fix ordered lists
This commit is contained in:
parent
82c2f6cf98
commit
a5755872ea
2 changed files with 2 additions and 2 deletions
2
boot.php
2
boot.php
|
@ -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 );
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue