Closed (fixed)
Project:
Typogrify
Version:
8.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 May 2023 at 09:47 UTC
Updated:
27 Jan 2026 at 18:49 UTC
Jump to comment: Most recent
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.
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
The regex in SmartyPants::educateQuotes() probably needs to be tweaked.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
prudloff commentedComment #5
benjifisher@prudloff:
Thanks for this fix. Your change looks good, and it works with manual testing. RTBC
I merged with the main branch, which now includes the updates from #3567314: Kernel test fails to run with PHPUnit 11.5.44 and #3541965: PHP 8.4 support. Then I added some test coverage for the change in this issue. If the tests pass, then I will merge.
Comment #7
benjifisher