I subscribed to digests on Discourse instances and read my emails in plaintext. Huge for having a really usable and readable plaintext version!
However, I recently discovered that some HTML tags were present in the digests when server lacks some translations. For instance, consider the unsubscribe link from the digest, translation is here, but is not available in the French locale.
Resulting email has following content in plaintext:
I’d disagree with the fact that it is not a bug. The root of the issue, is that there is a missing French translation, which I totally agree with.
But the issue I am reporting extend beyond the missing French translation. The true issue (in my opinion) is that if a translation is missing, plaintext emails get HTML tags in them. The span should be replaced by its content, in the plaintext version, in the case of a missing translation.
O caminho percorrido pelas notificações por e-mail mudou no ano passado, o que pode ter resolvido isso? Excluí algumas traduções em francês e posso ver que a versão em texto do resumo está usando inglês onde as strings em francês estão ausentes, e não há span HTML.
Este resumo é enviado de [Localhost][1] quando não temos notícias de você há algum tempo. Altere [suas preferências de e-mail][7] ou [clique aqui][8] para cancelar a assinatura.