this looks like a slightly cleaner solution to the unicode dl issue

This commit is contained in:
zotlabs 2017-05-14 21:04:34 -07:00 committed by Mario Vavti
parent 6ff16e2651
commit 508ea9153c

View File

@ -383,7 +383,7 @@ function bb_definitionList($match) {
$eatLeadingSpaces = '(?: |[ \t])*'; // prevent spaces infront of [*= from adding another line to the previous element $eatLeadingSpaces = '(?: |[ \t])*'; // prevent spaces infront of [*= from adding another line to the previous element
$listElements = preg_replace('/^(\n|<br \/>)/', '', $match[2]); // ltrim the first newline $listElements = preg_replace('/^(\n|<br \/>)/', '', $match[2]); // ltrim the first newline
$listElements = preg_replace( $listElements = preg_replace(
'/' . $eatLeadingSpaces . '\[\*=([\p{Any}]*?)(?<!\\\)\]/uism', '/' . $eatLeadingSpaces . '\[\*=([[:print:]]*?)(?<!\\\)\]/uism',
$closeDescriptionTag . '<dt>$1</dt><dd>', $closeDescriptionTag . '<dt>$1</dt><dd>',
$listElements $listElements
); );