I would like to typeset text (a link) at the end of the current line, like this
1 Text. [Link] 2 More text, that is unfortunately too long to fit the link. [Link] 3 Text that goes over two lines just places the link at the end of the last line, if it fits. [Link] 4 If it doesn't fit into the second line, because the text is just too long, put it flushright on the next line, as in 2. [Link]
I don't want to break the [Link] into two lines.
Update. Thank you for all your answers. The code from the accepted answer on the "duplicate" question works best: