A long time ago we added some code to avoid running words together: #420290: document preparation runs words together

That's absolutely OK for the search index. But since the result snippets are created from the content field we need to do some more sophisticated stuff. The first thing is to avoid spaces before or after punctuation marks depending on the kind of the punctuation mark.

Example:

Some example <em>text</em>. Some more text.

The search result will look like

Some example text . Some more text.

The expected result will be

Some example text. Some more text.
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mkalkbrenner’s picture

Status: Active » Needs review
FileSize
967 bytes

Status: Needs review » Needs work

The last submitted patch, 1927032.patch, failed testing.

mkalkbrenner’s picture

Status: Needs work » Needs review
FileSize
968 bytes
Nick_vh’s picture

Status: Needs review » Reviewed & tested by the community

I assume this is all UTF-8 convention? If so, then this is RTBC

Nick_vh’s picture

Version: 7.x-1.x-dev » 6.x-3.x-dev
Status: Reviewed & tested by the community » Patch (to be ported)

Committed, thanks!

wonder95’s picture

Status: Patch (to be ported) » Needs review
FileSize
1.32 KB

Patch for backport to 6.x-3.x is attached.

Nick_vh’s picture

Status: Needs review » Fixed

Committed, thanks!

Nick_vh’s picture

Status: Fixed » Closed (fixed)