Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 576047

Summary: [cleanup] correct indent should not change relative indentation of strings within text block
Product: [Eclipse Project] JDT Reporter: Jeff Johnston <jjohnstn>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 4.21   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard: stalebug

Description Jeff Johnston CLA 2021-09-16 17:19:53 EDT
Applying the correct indent cleanup on the following:

public class TestStringConcatToTextBlock {
    
    // abcdef
    String z, y = """
    	public class A {\s
    	    public \nvoid foo() {
    	        System.out.println("abc");
    	    }
    	}
    	"""; // ghi

}

Results in:

public class TestStringConcatToTextBlock {

    // abcdef
    String z, y = """
            public class A {\s
            public \nvoid foo() {
            System.out.println("abc");
            }
            }
            """; // ghi
}
Comment 1 Eclipse Genie CLA 2023-09-07 19:46:53 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 2 Jeff Johnston CLA 2023-09-08 11:23:51 EDT
This was fixed via a number of fixes all the way to 2023-06 (4.28).