Skip to content

Commit

Permalink
enforced snippet return trim, related #17
Browse files Browse the repository at this point in the history
Signed-off-by: Bruno Meilick <b@bnomei.com>
  • Loading branch information
bnomei committed Aug 19, 2019
1 parent 0ffbeb8 commit 92330f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/Feed.php
Expand Up @@ -56,11 +56,11 @@ public function stringFromSnippet($force = null): Feed
return $this;
}

$string = snippet(
$string = trim(snippet(
\Kirby\Toolkit\A::get($this->options, 'snippet'),
$this->options,
true
);
));

kirby()->cache('bnomei.feed')->set(
$key,
Expand Down

0 comments on commit 92330f6

Please sign in to comment.