FEATURE: add line breaks into diff

This commit is contained in:
Michal Kváček
2016-10-25 19:55:07 +02:00
parent 6dd452317b
commit 988f153d9f
4 changed files with 2 additions and 2 deletions
@@ -78,6 +78,6 @@ trait ContentHistory
public function getDiff($change)
{
return Differ::htmlDiff(e($change->old_value), e($change->new_value));
return Differ::htmlDiff(nl2br(e($change->old_value)), nl2br(e($change->new_value)));
}
}