Wrap long lines and fix an issue when media_files is a false