trim chapter newlines

issue #44