adds class SmartNewLineCommand

fix issue when folded headline is last one  in file