sustrik/ribosome

Python ribosome cannot handle empty variables

KerstinKeller opened this issue · 3 comments

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!

It seems to me, that ribosome.py is missing a return statement on line 116 in the function trim.

Correct. Would you like to send a pull request?

Fixed.