Skip to main content
Firewood:D
Inspiring
September 15, 2025
Question

I'm having issues with line breaks displaying correctly when using alert on a Mac.

  • September 15, 2025
  • 1 reply
  • 93 views

To verify whether this is a software issue or something else, I'm using the following:

alert("Note:\n\nThe following text will not be displayed"); // Correct

alert("Note:\n\nThe following text will not be displayed"); // Error

 The difference between the two code snippets is the punctuation. The incorrect one uses the Chinese colon ":" (colon), while the English punctuation "":", appears correctly.
Although I suspect it's a language issue, the same code displays correctly on Windows but not on a Mac due to language issues. I'm using version 24.0.8 and the Chinese input method, but I still encounter errors with the \n or
\r line break on a Mac.
I'm not sure if this is a bug or if there's another reason. Does anyone know?

    1 reply

    JoãoCésar17023019
    Inspiring
    September 15, 2025

    Hi.

     

    I'm on a mac and both cases work for me.

     

    So not sure what could be the issue here.

     

    My Animate version is 24.0.11.

     

    Regards,

    JC

    Firewood:D
    Inspiring
    September 16, 2025

    Thanks for your reply, at least there is no problem after excluding the line break.