Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use a line break in an alert/prompt dialog in Google Apps Script?

I have been having trouble with formatting a dialog in Google Apps Script. I would like to have a dialog using SpreadsheetApp.getUi().alert(prompt) which has a line break so I can have a list. I tried using \n, \\n, and <br />, but nothing appears to work and I can't find anything anywhere on whether or not it is even possible. Any ideas?

like image 534
Napostrophe Avatar asked May 23 '18 17:05

Napostrophe


1 Answers

I went through this same problem. This actually works:

\r\n
like image 135
jaredcohe Avatar answered Sep 20 '22 13:09

jaredcohe