BACKLOG-4065: Avoid line return on the last section when no divider is specified