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 161742 - Source > Format error with heredoc string in method call
Summary: Source > Format error with heredoc string in method call
Status: NEW
Alias: None
Product: ruby
Classification: Unclassified
Component: Editing (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@ruby
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-02 10:30 UTC by dolzenko
Modified: 2011-01-28 20:13 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Test file with the same example (139 bytes, text/plain)
2009-04-02 10:31 UTC, dolzenko
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dolzenko 2009-04-02 10:30:58 UTC
Source > Format behaves incorrectly with heredoc string in method calls, example:

def test()
	puts(<<-STR)
Some text
	STR
	if true
end # this end and all the following code has wrong indentation
puts("something else")
end
Comment 1 dolzenko 2009-04-02 10:31:58 UTC
Created attachment 79264 [details]
Test file with the same example
Comment 2 Erno Mononen 2009-07-15 16:11:12 UTC
Reproduced, thanks for the report. Will attempt to fix for 6.8. Format appears to work fine if you add a newline after 
the heredoc.