- Conditionally keeps margin/padding for ALC posts inside editor
- Adds line breaks for ALC posts in the renderer
This commit is contained in:
@@ -72,9 +72,7 @@ class StructureTransformer {
|
||||
} else {
|
||||
return array(
|
||||
'type' => 'text',
|
||||
'text' => ($item->getNextSibling()) ?
|
||||
preg_replace('/\n/', "<p> </p>", $item->toString()) :
|
||||
$item->toString()
|
||||
'text' => $item->toString()
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user