Multiline value
See original GitHub issueIs there any way to use a multi-line value in the .env
file?
I’ve tried using double quotes, single quotes, backticks plus the \n
char but I get the literal \n
characters in the string when evaluated in Java code.
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
6.8 Defining Multi-Line Variables
6.8 Defining Multi-Line Variables. Another way to set the value of a variable is to use the define directive. This directive has an...
Read more >Creating multiline strings in JavaScript
Update: ECMAScript 6 (ES6) introduces a new type of literal, namely template literals. They have many features, variable interpolation among others, ...
Read more >JavaScript Multiline String – How to Create Multi Line ...
JavaScript Multiline String – How to Create Multi Line Strings in JS ... A string is an ordered sequence of character values.
Read more >YAML Multiline Strings
Find the right syntax for your YAML multiline strings. ... (Scalars are what YAML calls basic values like numbers or strings, as opposed...
Read more >Python Multi Line Strings
Multiline Strings. You can assign a multiline string to a variable by using three quotes: Example. You can use three double quotes:.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yeah Base64 definitely gets the job done. Did not occur to me at the moment so ended up putting something like
__NEWLINE__
in the.env
file and then replacing it when reading the values in the Java code. Thanks for taking the time to go over the Java behavior! I do agree with you that it should stay the same as whatSystem.getenv
does. Maybe we could add something to theREADME
there is a reference to the issue in the future. Coming in, I thought the newlines would just work and took me well over an hour to realize that was the issue I had, given the use case I had.Thanks for the details. This is helpful. Will have a look