This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 137586

Summary: Inserting matching quotes for multiline strings adds 2 or 4 of the,m
Product: groovy Reporter: martin_adamek <martin_adamek>
Component: EditorAssignee: Martin Janicek <mjanicek>
Status: CLOSED WORKSFORME    
Severity: blocker CC: driscoll
Priority: P4    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description martin_adamek 2008-06-18 15:52:47 UTC
.. but should somehow add 3 or six...
def foo = ""|
Comment 1 Martin Janicek 2012-02-21 14:31:10 UTC
Not sure what is the original problem. Please provide some concrete example describing what's wrong with def foo = ""|
Comment 2 driscoll 2012-08-16 18:14:17 UTC
I just tested this on 7.2 - it works.

There's another issue, with indenting, but I'll file that as a separate bug.  I think you can close this bug.  (Actually, I'll just do it.)

BTW:  The original bug referrs to multiline GStrings in Groovy, so not 

foo = "test"

but rather

foo =
"""
test multiline text
second line

fourth line
"""

So, having a fouth quote would be bad in that case.
Comment 3 Martin Janicek 2012-08-20 07:59:56 UTC
Thanks for the clarification driscoll!