diff --git a/Controller/ApiController.php b/Controller/ApiController.php
index b35f1bf..1634cf6 100644
--- a/Controller/ApiController.php
+++ b/Controller/ApiController.php
@@ -59,7 +59,7 @@ final class ApiController extends Controller
string $content = null
) : void
{
- $newString = StringUtils::stringify($new);
+ $newString = StringUtils::stringify($new, \JSON_PRETTY_PRINT);
$audit = new Audit($account, null, $newString, $type, $subtype, $module, $ref, $content);
AuditMapper::create($audit);
@@ -94,8 +94,8 @@ final class ApiController extends Controller
string $content = null
) : void
{
- $oldString = StringUtils::stringify($old);
- $newString = StringUtils::stringify($new);
+ $oldString = StringUtils::stringify($old, \JSON_PRETTY_PRINT);
+ $newString = StringUtils::stringify($new, \JSON_PRETTY_PRINT);
$audit = new Audit($account, $oldString, $newString, $type, $subtype, $module, $ref, $content);
AuditMapper::create($audit);
@@ -130,7 +130,7 @@ final class ApiController extends Controller
string $content = null
) : void
{
- $oldString = StringUtils::stringify($old);
+ $oldString = StringUtils::stringify($old, \JSON_PRETTY_PRINT);
$audit = new Audit($account, $oldString, null, $type, $subtype, $module, $ref, $content);
AuditMapper::create($audit);
diff --git a/Theme/Backend/audit-single.tpl.php b/Theme/Backend/audit-single.tpl.php
index d50d817..667b6c1 100644
--- a/Theme/Backend/audit-single.tpl.php
+++ b/Theme/Backend/audit-single.tpl.php
@@ -21,10 +21,12 @@ echo $this->getData('nav')->render();
- = \phpOMS\Utils\StringUtils::createDiffMarkup(
- \phpOMS\Views\ViewAbstract::html($this->getData('audit')->getOld() ?? ''),
- \phpOMS\Views\ViewAbstract::html($this->getData('audit')->getNew() ?? '')
- ); ?>
+ = \phpOMS\Utils\StringUtils::createDiffMarkup(
+ \phpOMS\Views\ViewAbstract::html($this->getData('audit')->getOld() ?? ''),
+ \phpOMS\Views\ViewAbstract::html($this->getData('audit')->getNew() ?? ''),
+ "\n"
+ ); ?>
+