Skip to content

Commit

Permalink
Merge pull request #1469 from bolt/fix/excerpt-length
Browse files Browse the repository at this point in the history
Fix excerpt length
  • Loading branch information
I-Valchev authored Jun 12, 2020
2 parents cbf8641 + ad78ada commit 733618f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Utils/Html.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Html
public static function trimText(string $str, int $desiredLength, bool $hellip = true, int $cutOffCap = 3): string
{
if ($hellip) {
$ellipseStr = ' ';
$ellipseStr = '';
$newLength = $desiredLength - 1;
} else {
$ellipseStr = '';
Expand Down

0 comments on commit 733618f

Please sign in to comment.