flask-dotenv
flask-dotenv copied to clipboard
Spaces between equal sign on environment file
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:
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:
And the SQLALCHEMY_DATABASE_URI value works as expected (no spaces in the string)
Anyway, thanks for your work!
@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 No problem by the delay! I hope you can fix it! Cheers!