mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 14:17:48 +00:00
[jdk13] Added support for printing text blocks (triple quoted strings) in text block form
This commit is contained in:
12 files changed
+146
-37
No files matched your search
@@ -0,0 +1,25 @@
|
||||
public class TextBlocks {
|
||||
private String example = """
|
||||
This should not be indented.
|
||||
line 2
|
||||
line 3
|
||||
""";
|
||||
|
||||
private String ex2 = """
|
||||
This should be though.
|
||||
""";
|
||||
|
||||
private String ex3 = "This is a simple\nstring";
|
||||
|
||||
private String ex4 = """
|
||||
""";
|
||||
|
||||
private String bizarroDent = """
|
||||
foo
|
||||
bar""" + "hey" + """
|
||||
weird!""";
|
||||
|
||||
private String stringFolding = "hmmm" + """
|
||||
line1
|
||||
line2""";
|
||||
}
|
||||
Reference in new issue
Block a user