# Truncating long formulae in titles breaks formatting in search result lists

When displaying search results, long titles are truncated. That's fine with me, but if the closing $of a formula in the title is dropped, bad things happen: The same happens when the excerpt starts or ends in the middle of a formula. Ending truncated formulae with \dots$ instead of should fix the issue.

I would agree that long formulae in titles are bad, but what can you do...

• "What can you do", shorten them, or not apply them in the title. That's just my \$.02. – Madara's Ghost Feb 1 '14 at 16:57
• @MadaraUchiha: The issue still applies if you have short formulae in long titles (and bad luck) and those can't always be avoided. – Raphael Feb 1 '14 at 20:32
• I don't know how you guys do on Computer Science, but on Stack Overflow we actively discourage the use of code in titles, for example. – Madara's Ghost Feb 1 '14 at 20:33
• @MadaraUchiha: We discourage it, too, but sometimes you have to choose between a meaninglessly generic title and one with formulae. That said, the issue applies to excerpts, and these are definitely supposed to contain formulae. (And, it's still a bug even for titles.) – Raphael Feb 1 '14 at 20:36
• This is still an issue, as can be seen with that same query. – Raphael Jun 8 '15 at 13:55