Open CreateGenius opened 1 week ago
task wrapText(type: Copy) { def inputFile = file('clipboard.txt') def outputFile = file('wrapped_clipboard.txt')
doLast { outputFile.text = inputFile.text.replaceAll(/(.{1,80})(\s+|\Z)/, '$1\n') }
}
task wrapText(type: Copy) { def inputFile = file('clipboard.txt') def outputFile = file('wrapped_clipboard.txt') doLast { outputFile.text = inputFile.text.replaceAll(/(.{1,80})(\s+|\Z)/, '$1\n') } }
task wrapText(type: Copy) { def inputFile = file('clipboard.txt') def outputFile = file('wrapped_clipboard.txt')
}