Hartmut Haase schrieb: > Both proposals result in the same wrong linebreak, because it is a > space, and LaTeX seems to treat "xxx-~," different from "xxx~yyy", > but I don't know why.
The problem is the hyphen "-". TeX allows hyphenation after any hyphen per default, no matter what comes after the hyphen. This is the reason for the »"~«-command in german.sty, which circumvents the problem by putting the hyphen in a hbox \hbox{-}, which suppresses the inclusion of the hyphenation point. Maybe you can do that as well. Yours, Karsten