Skip to content

Add support for <p>-style multiline strings #435

@BSteffaniak

Description

@BSteffaniak

Something like:

if (workingDirectory == currentDirectory) {
  log.debug("
    Searching for files matching glob pattern #filePattern with working directory:
    \"#{workingDirectory.normalizedLocation}\"
  "p)
} else {
  log.debug("
    Searching for files matching glob pattern #filePattern in
    \"#{currentDirectory.normalizedLocation}\" with working directory:
    \"#{workingDirectory.normalizedLocation}\"
  "p)
}

this is the equivalent of:

if (workingDirectory == currentDirectory) {
  log.debug("Searching for files matching glob pattern #filePattern with working directory: \"#{workingDirectory.normalizedLocation}\"")
} else {
  log.debug("Searching for files matching glob pattern #filePattern in \"#{currentDirectory.normalizedLocation}\" with working directory: \"#{workingDirectory.normalizedLocation}\"")
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions