change the way it handles newlines between source and media URLs