reformat text course file