Hang/infinite loop when using TextLayout and juce::newLine

If you use multiple juce::newLines in a juce::TextLayout (for example when showing an AlertWindow) it will hang.
Here’s some code to replicate (reported by users on Windows, replicated on macOS in the JUCE DemoRunner):

        auto s = TRANS ("Some text") + juce::newLine + juce::newLine + "with two juce::newLines in";
        juce::AttributedString attributedText (s);
        juce::TextLayout textLayout;
        textLayout.createLayoutWithBalancedLineLengths (attributedText, 440.0f);

Note, if I use a single juce::newLine or raw new lines ("\n\n") instead, I don’t get the hang.
So must be something to do with the “\r\n\r\n” string juce creates?

Thank you for reporting. We’ve released a fix on develop