Yeah, really cool! Works as expected. +1 by reading and testing, if you change removeEmptyLinesFromTemplate to removeAllLineBreaksFromTemplate the two times, which survived the renaming ;-) Thanks for this great patch! Steffen