sustrik / ribosome

Simple code generator
248 stars 21 forks source link

Generate with recursive indentation #54

Open foerstj opened 7 years ago

foerstj commented 7 years ago

I want to generate some C++ code with recursive struct definitions (structs in structs) and I want them to be indented properly. However I cannot simply print out some blanks like @{' '*ind_lvl} because val.trim() is called in line 251 in ribosome.py. How can I do that? Is this possible with Ribosome?