dotenv.net
dotenv.net copied to clipboard
Multi-line values are not supported
As per title it would be good if multi-line values would be supported. For example certificate public/private keys are not supported.
A quick proposal:
- Values surrounded with double-quote (") could be multi-line.
- Double-quote (") char could be escaped with back-slack () to be treated literally
- Back-slash () char could be be escaped with another back-slash () to be treated literally but that would only be necessary if back-slash () char would be followed by the double-quote (") char.
- Rules 2 & 3 would be effective only for values that start with double-quote (") char
Examples:
X="I'm a multi-line variable"
Y="I'm a multi-line variable with a " double-quote sign"
Z="I'm a multi-line variable with a \ back-slash sign"
ZZ="I'm a multi-line variable with a \" back-slash and double-quote sign char pair sign"
and also
ZZZ="I'm a multi-line variable \"
+1 for this request
+1