[jdk13] Added support for printing text blocks (triple quoted strings) in text block form

This commit is contained in:
Reinier Zwitserloot committed 2019-09-25 01:19:55 +02:00
1 parent 230cd66765
commit 69011b90d8
12 files changed
+146 -37

No files matched your search

@@ -0,0 +1,24 @@
// version 13:
public class TextBlocks {
private String example = """
This should not be indented.\nline 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\n bar""" + "hey" + """
weird!""";
private String stringFolding = "hmmm" + """
line1
line2""";
}