Python ribosome cannot handle empty variables
KerstinKeller opened this issue · 3 comments
KerstinKeller commented
It seems that ribosome.py cannot handle empty string variables for output generation.
E.g.
var = ""
.Hello @{var}!
I expect that it would output
Hello !
but the output file is empty.
On the other hand
var = "World"
.Hello @{var}!
correctly outputs
Hello World!
KerstinKeller commented
It seems to me, that ribosome.py is missing a return
statement on line 116 in the function trim
.
sustrik commented
Correct. Would you like to send a pull request?
sustrik commented
Fixed.