Single quote at the end of a line is replaced by apostroph

Created on 24 May 2023, about 1 year ago

Problem/Motivation

SmartyPants replaces single quotes that are at the end of a line.
This leads to an apostroph at the end of a line which can be surprising for users.

Steps to reproduce

Enable the Use typographers quotation marks and dashes option on a French text field.

Test 'foo' is replaced by Test ‹foo’
Test 'foo' bar is replaced by Test ‹foo› bar

Proposed resolution

The regex in SmartyPants::educateQuotes() probably needs to be tweaked.

🐛 Bug report
Status

Needs review

Version

1.1

Component

Code

Created by

🇫🇷France prudloff Lille

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

Comments & Activities

Production build 0.69.0 2024