Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#6 | 1927032-avoid-spaces-snippets.patch | 1.32 KB | wonder95 |
#3 | 1927032.patch | 968 bytes | mkalkbrenner |
#1 | 1927032.patch | 967 bytes | mkalkbrenner |
Comments
Comment #1
mkalkbrennerComment #3
mkalkbrennerComment #4
Nick_vhI assume this is all UTF-8 convention? If so, then this is RTBC
Comment #5
Nick_vhCommitted, thanks!
Comment #6
wonder95 CreditAttribution: wonder95 commentedPatch for backport to 6.x-3.x is attached.
Comment #7
Nick_vhCommitted, thanks!
Comment #8
Nick_vh