Text wrapping after quotes

Created on 11 June 2023, over 1 year ago
Updated 12 June 2023, over 1 year ago

Hello everyone,

I use this amazing module for generating social media previews for my news website. Previews consist of the image and news title on it. Often news titles contain quotation marks and apostrophes (", ', «, », ’). The problem is that the text is wrapped after the opening quotation mark, which is not correct behavior (Please do not pay attention to the Cyrillic alphabet, my site is in Ukrainian):
https://i.imgur.com/p96QqDn.png

I added a simple fix for PREG_CLASS_PUNCTUATION and excluded " ' « ’ chars from it.

Result:
https://i.imgur.com/EAo9Hbm.jpeg

Not sure if it is a 100% accurate way to fix this issue, so any suggestions are welcome!

🐛 Bug report
Status

Active

Version

3.4

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024