I have a TranslatableMarkup string that has a link that is inserted in it as a variable. However this link comes without a space between the link and the previous word in the string.
$message = new TranslatableMarkup("Some message and last word @link", ["@link" => $link]);
This message is then printed out using drupal_set_message. The message comes without the space between 'word' and the link when it is displayed.
This is the expected behaviour with browser ignoring the white space before the tag with the link. How do we force this without custom inline block styling for the link?