aachyee / google-desktop-sdk

Automatically exported from code.google.com/p/google-desktop-sdk
0 stars 0 forks source link

view.prompt does not support CR and LF (\n) #48

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Put the following code in a part of a JavaScript in a google gadget:
answer = view.prompt( '1st Line\n\n2nd Line\n\n3rd Line', '');
2. run the gadget so that the upper line will be executed.

What is the expected output?
A dialogbox like:
+--FinTS-Gadget-------+
|                     |
|    1st line         |
|    2nd line         |
|    3rd line         |
|                     |
|  <input field>      |
+---------------------+

What do you see instead?
+--FinTS-Gadget-------+
|                     |
|    2nd line         |
|                     |
|  <input field>      |
+---------------------+

that means - "1st line" and "3rd line" will not be displayed.

What version of the product are you using? On what operating system?
Google Desktop 5.7.0806.10245-de-pb
OS: Windows XP SP2

Original issue reported on code.google.com by michael....@googlemail.com on 7 Aug 2008 at 2:40