hteumeuleu / email-bugs

Email quirks and bugs
538 stars 20 forks source link

Gmail removes punctuation in the preheader #103

Open M-J-Robbins opened 3 years ago

M-J-Robbins commented 3 years ago

When a number is written with a comma 1,000 1,000,000 etc. Gmail will remove the comma from the preheader so it will display as 1000 1000000 etc.

If a number contains a comma which is not used for formatting thousands then it seems to work ok e.g 1,0 10,00

A way to work around this is to include a hidden character like a zero width non-joiner1,‌000 1,‌000,000 etc.

M-J-Robbins commented 2 years ago

Additionally, this is happening in text too Fly Fishing by J. R. Hartley will become Fly Fishing by JR Hartley

Same fix works as with number Fly Fishing by J‌. R. Hartley works as expected

This was pointed out in EmailGeeks Slack here https://emailgeeks.slack.com/archives/C0LCJ73R6/p1661979277423579

M-J-Robbins commented 1 year ago

This has also been reported to happen with a hyphen - https://emailgeeks.slack.com/archives/C1Z733K1P/p1679441172980129

Same fix worked -‌