From 4aa834bf799b7dae4b773d492759a0d6c9642bb4 Mon Sep 17 00:00:00 2001 From: Dominik Hebeler <dominik@suma-ev.de> Date: Thu, 6 Dec 2018 13:54:03 +0100 Subject: [PATCH] Added Ellipsis to cut strings in description of results --- app/Models/Result.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Result.php b/app/Models/Result.php index de7a6c360..865a28ca5 100644 --- a/app/Models/Result.php +++ b/app/Models/Result.php @@ -42,7 +42,7 @@ class Result if (strlen($this->descr) > 150) { $this->descr = wordwrap($this->descr, 150); $this->descr = substr($this->descr, 0, strpos($this->descr, "\n")); - + $this->descr .= "…"; // Ellipsis character } $this->gefVon = trim($gefVon); $this->gefVonLink = trim($gefVonLink); -- GitLab