-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
area-core-librarySDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.core-llibrary-coretype-enhancementA request for a change that isn't a bugA request for a change that isn't a bug
Description
Similar to other languages, although we probably want to just remove all indentation when no margin character is given.
var x = """
foo() {
xyz;
}""".stripMargin();
print(x):yields:
foo() {
xyz;
}
With margin character:
var x = """
|foo() {
| xyz;
|}""".stripMargin("|");
print(x):or:
var x = """foo() {
| xyz;
|}""".stripMargin("|");
print(x):Both of these yield the same result.
jacehensley-wf, azenla, RyochanUedasan, aaronstgeorge-wf and jdanbrown
Metadata
Metadata
Assignees
Labels
area-core-librarySDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.core-llibrary-coretype-enhancementA request for a change that isn't a bugA request for a change that isn't a bug