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) 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)));
} }
} }
+1 -1
View File
@@ -12,7 +12,7 @@
</div> </div>
</div> </div>
<div class="card-block"> <div class="card-block">
{!! $diff !!} {!! nl2br($diff) !!}
</div> </div>
</div> </div>