For example, in this sentence, "Comment allez-vous ?", the question mark and the last word in the sentence are separated by a whitespace.
When French text is written in a column, you will often get something like this:
Elle zigzague pour empiéter sur des impostures
? Jacqueline porte chance.
The line break happens between the last word of the sentence and the question mark, which is not desirable.
Elle zigzague pour empiéter sur des
impostures ? Jacqueline porte chance.
Is there a way to solve this in pure CSS? Or do we have to manually process text and wrap the punctuation and the word in a non-breaking span?
<html lang="fr">
? That would give the browser a hint - whether or not it uses the hint is a different matter. – Anorthic
instead of SPACE to simulate a connection to the last character. This is not a CSS solution. – Hectogram