You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
- and -- behave differently with no-break space than all other characters when inside zero-width box #6400
I also want to know how exactly stuff supposed to behave inside such box. And it's definitely should be documented. Maybe you should avoid using it? I don't know how it supposed to behave, so I assume it's like UB, so don't use it.
I assume a box with null width forces its content to break as much as possible. I don't think there is any special case to document here. What seems to happen here is that HYPEN MINUS and EN DASH allow a line break after them, even when followed by a non-breaking space, hence the additional line.
Dit onderwerp is natuurlijk niet de hoofdzaak van deze @MPP, maar vind ik persoonlijk
belangrijk genoeg
--#{sym.space.nobreak}ook met het oog op *de educatie van wetenschappers in spe* --,
dat ik dit als een secundaire doelstelling heb behandeld.
Activity
MDLC01 commentedon Jun 6, 2025
I assume a box with null width forces its content to break as much as possible. I don't think there is any special case to document here. What seems to happen here is that HYPEN MINUS and EN DASH allow a line break after them, even when followed by a non-breaking space, hence the additional line.
th1j5 commentedon Jul 17, 2025
Well, this is unexpected behaviour for me...
Results in:

Remark that in dutch, the en dash is used for thoughts, not the em dash (https://taaladvies.net/gedachtestreepje/).
In this image, it should obviously be on the next line, certainly since I'm trying to force it with a non-breaking space.
Edit: Remark that
... belangrijk genoeg #box[-- ook] met het ...fixes this, but I still think it is unexpected behaviour.MDLC01 commentedon Nov 26, 2025
Related: In the example below, I would expect "test – test" to appear on a single line.