Line ending alignment