flask-dotenv icon indicating copy to clipboard operation
flask-dotenv copied to clipboard

Spaces between equal sign on environment file

Open hernanBeiza opened this issue 5 years ago • 2 comments

Hi! I found a issue when you put spaces between the var and the asigned value. Example:

SQLALCHEMY_DATABASE_URI = mysql+my...

And when you load the var SQLALCHEMY_DATABASE_URI, the printed value is:

Space between equal sign

Maybe a trim o something like that... Because when the key value doesnt have spaces before and after the equal sign, like this: SQLALCHEMY_DATABASE_URI=mysql+my...

The printed value is:

Space between equal sign OK

And the SQLALCHEMY_DATABASE_URI value works as expected (no spaces in the string)

Anyway, thanks for your work!

hernanBeiza avatar Feb 08 '20 00:02 hernanBeiza

@hernanBeiza Hi! Thank you for reporting this. Sorry for rate reply... As you say, it makes sense to trim the spaces. I'll take a look at this.

grauwoelfchen avatar Apr 15 '20 17:04 grauwoelfchen

@grauwoelfchen No problem by the delay! I hope you can fix it! Cheers!

hernanBeiza avatar May 05 '20 13:05 hernanBeiza