rstrip() lines in new_logging_form