Fixed empty lines in lm_input generator