Quotes in post titles converted to a different character

Hi.

Since the last Discourse update, when I write a post title that contains a quote ', it is converted to preceded by a single space when I create the post.

If I click on the edit title button, the input correctly shows ' but it is always converted to (preceded by a single space) when I do confirm the title edition.

Also it appears that if I write a double quote ", it will be converted to ».

3 Likes

Hmm this looks like a new bug with the international quotes @zogstrip

2 Likes

@gerhard is already aware.

We might have to revert that commit, since our HtmlPrettify is working on a “character-by-character” basis, it doesn’t know when a quote is the start of a matching pair or merely an apostrophe.

Something like smartquotes.js might work but this is a very complicated problem.

6 Likes

https://github.com/discourse/discourse/commit/7e69c5cc369ac7c13aa6dd97e680830dcd462390

5 Likes