Skip to content
This repository was archived by the owner on Jan 4, 2021. It is now read-only.
This repository was archived by the owner on Jan 4, 2021. It is now read-only.

Str::excerpt should make the space character a part of $rep #525

@hdodov

Description

@hdodov

In our websites, we would like content to be truncated like this:

Lorem ipsum dolor sit amet…

and not like this:

Lorem ipsum dolor sit amet …

The space before the ellipsis is the difference. This could very easily be solved by simply making $rep = ' …' in this line and removing the concatenated space on this line.

Then, the default replacement starts with a space, but I could pass in a replacement without one, if I so desire.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions