# Multi-Line string in Script-Editor causes Exception

**URL:** <https://forum.inductiveautomation.com/t/multi-line-string-in-script-editor-causes-exception/4072>\
**Category:** Ignition\
**Created:** [February 27, 2012, 7:23pm UTC](https://forum.inductiveautomation.com/t/multi-line-string-in-script-editor-causes-exception/4072 "2012-02-27T19:23:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chi](https://avatars.discourse-cdn.com/v4/letter/c/0ea827/32.png) [@chi](https://forum.inductiveautomation.com/u/chi)\
**Post date:** [February 27, 2012, 7:23pm UTC](https://forum.inductiveautomation.com/t/multi-line-string-in-script-editor-causes-exception/4072/1 "2012-02-27T19:23:29Z")

</div>

There seems to be a minor bug in the script editor (7.3.4 b599).  
The following script causes an ArrayIndexOutOfBoundException when you try to position the cursor to the line with the closing quotes.  
I stumbled across this while trying to make a long SQL-Query more readable.

```auto
print """Line 1
       Another line
"""
```

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [February 27, 2012, 8:55pm UTC](https://forum.inductiveautomation.com/t/multi-line-string-in-script-editor-causes-exception/4072/2 "2012-02-27T20:55:05Z")

</div>

[quote=“chi”]There seems to be a minor bug in the script editor (7.3.4 b599).  
The following script causes an ArrayIndexOutOfBoundException when you try to position the cursor to the line with the closing quotes.  
I stumbled across this while trying to make a long SQL-Query more readable.

`
print """Line 1
       Another line
"""
`[/quote]

Thanks for letting us know. We’ve upgrade the editor component in 7.4 which I’m guessing will fix the problem. I’ll give it a try.
