gen-env-types icon indicating copy to clipboard operation
gen-env-types copied to clipboard

ignore blank lines

Open ofbeaton opened this issue 5 years ago • 2 comments

It would be great if the tool ignored blank lines.

If you have a blank line in your .env, or more commonly just end the file with a newline, then the generated .example file has an extra = line.

.env

DB_TYPE=postgres
DB_USER=myapp

generated .example file

DB_TYPE=
DB_USER=
=

notice the last line with just a =

ofbeaton avatar Aug 21 '20 19:08 ofbeaton

Is this still happening? I believe it was fixed on a35ef3c @ofbeaton

guidodizi avatar Oct 04 '20 22:10 guidodizi

This is still happening

Distortedlogic avatar Nov 09 '20 13:11 Distortedlogic